900 |
How do I get sorted the column as string, numeric, date, date and time. Also how can it be applied to drop down filter panel
public void init() { COM com_Column,com_Column1,com_Column2,com_Column3,com_Column4,com_Column5,com_Items; anytype var_Column,var_Column1,var_Column2,var_Column3,var_Column4,var_Column5,var_Items; int h; ; super(); exgantt1.BeginUpdate(); /*should be called during the form's activate method*/ exgantt1.Chart().PaneWidth(true,0); var_Column = COM::createFromVariant(exgantt1.Columns().Add("Date")); com_Column = var_Column; com_Column.SortType(2/*SortDate*/); com_Column.DisplayFilterButton(true); com_Column.DisplayFilterPattern(false); com_Column.DisplayFilterDate(true); com_Column.FilterList(1296/*exShowFocusItem | exShowCheckBox | exSortItemsDesc*/); var_Column1 = COM::createFromVariant(exgantt1.Columns().Add("DateTime")); com_Column1 = var_Column1; com_Column1.SortType(3/*SortDateTime*/); com_Column1.DisplayFilterButton(true); com_Column1.DisplayFilterPattern(false); com_Column1.FilterList(1296/*exShowFocusItem | exShowCheckBox | exSortItemsDesc*/); var_Column2 = COM::createFromVariant(exgantt1.Columns().Add("Time")); com_Column2 = var_Column2; com_Column2.SortType(4/*SortTime*/); com_Column2.DisplayFilterButton(true); com_Column2.DisplayFilterPattern(false); com_Column2.FilterList(1296/*exShowFocusItem | exShowCheckBox | exSortItemsDesc*/); com_Column2.FormatColumn("time(value)"); var_Column3 = COM::createFromVariant(exgantt1.Columns().Add("Numeric")); com_Column3 = var_Column3; com_Column3.SortType(1/*SortNumeric*/); com_Column3.DisplayFilterButton(true); com_Column3.FilterList(1296/*exShowFocusItem | exShowCheckBox | exSortItemsDesc*/); var_Column4 = COM::createFromVariant(exgantt1.Columns().Add("String")); com_Column4 = var_Column4; com_Column4.DisplayFilterButton(true); com_Column4.FilterList(1296/*exShowFocusItem | exShowCheckBox | exSortItemsDesc*/); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem(COMVariant::createFromDate(str2Date("1/27/2010",213))); com_Items.CellCaption(h,COMVariant::createFromInt(1),COMVariant::createFromUtcDateTime(str2Datetime("1/27/2010 10:00:00",213))); com_Items.CellCaption(h,COMVariant::createFromInt(2),com_Items.CellCaption(h,COMVariant::createFromInt(1))); com_Items.CellCaption(h,COMVariant::createFromInt(3),COMVariant::createFromInt(1)); com_Items.CellCaption(h,COMVariant::createFromInt(4),com_Items.CellCaption(h,COMVariant::createFromInt(3))); h = com_Items.AddItem(COMVariant::createFromDate(str2Date("1/27/2011",213))); com_Items.CellCaption(h,COMVariant::createFromInt(1),COMVariant::createFromUtcDateTime(str2Datetime("1/27/2011 9:00:00",213))); com_Items.CellCaption(h,COMVariant::createFromInt(2),com_Items.CellCaption(h,COMVariant::createFromInt(1))); com_Items.CellCaption(h,COMVariant::createFromInt(3),COMVariant::createFromInt(11)); com_Items.CellCaption(h,COMVariant::createFromInt(4),com_Items.CellCaption(h,COMVariant::createFromInt(3))); h = com_Items.AddItem(COMVariant::createFromDate(str2Date("11/2/2010",213))); com_Items.CellCaption(h,COMVariant::createFromInt(1),COMVariant::createFromUtcDateTime(str2Datetime("11/2/2010 9:00:00",213))); com_Items.CellCaption(h,COMVariant::createFromInt(2),com_Items.CellCaption(h,COMVariant::createFromInt(1))); com_Items.CellCaption(h,COMVariant::createFromInt(3),COMVariant::createFromInt(2)); com_Items.CellCaption(h,COMVariant::createFromInt(4),com_Items.CellCaption(h,COMVariant::createFromInt(3))); var_Column5 = COM::createFromObject(exgantt1.Columns()).Item("DateTime"); com_Column5 = var_Column5; com_Column5.DisplayFilterDate(false); exgantt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(true,0); } */ |
899 |
I am using Layout property to sort multiple columns at once. The problem is that all items get expanded. How do I prevent that
public void init() { COM com_Column,com_Column1,com_Items; anytype var_Column,var_Column1,var_Items; int h; ; super(); exgantt1.BeginUpdate(); exgantt1.LinesAtRoot(-1/*exLinesAtRoot*/); var_Column = COM::createFromVariant(exgantt1.Columns().Add("P1")); com_Column = var_Column; com_Column.Def(0/*exCellHasCheckBox*/,COMVariant::createFromBoolean(true)); com_Column.PartialCheck(true); var_Column1 = COM::createFromVariant(exgantt1.Columns().Add("P2")); com_Column1 = var_Column1; com_Column1.Def(0/*exCellHasCheckBox*/,COMVariant::createFromBoolean(true)); com_Column1.PartialCheck(true); com_Column1.FormatColumn("1 index ``"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root"); com_Items.InsertItem(h,,"Child A"); com_Items.InsertItem(h,,"Child B"); com_Items.InsertItem(h,,"Child A"); com_Items.InsertItem(h,,"Child B"); com_Items.AddItem("Root"); com_Items.AddItem("Root"); exgantt1.SingleSort(false); exgantt1.Layout("multiplesort=\"C0:1 C1:2\";collapse=\"\""); exgantt1.EndUpdate(); } |
898 |
How can I get ride / hide the image being dragged by OLE Drag and Drop
// OLEStartDrag event is not supported. Use the DragEnter,DragLeave,DragOver, DragDrop ... events. public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.OLEDropMode(1/*exOLEDropManual*/); exgantt1.Background(34/*exDragDropAfter*/,WinApi::RGB2int(255,255,255)); exgantt1.LinesAtRoot(-1/*exLinesAtRoot*/); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); } |
897 |
I'm trying to use automatic numbering of the outline. How can I have A, B, C for root items, 1, 2, 3 for the sub-items, and a, b, c for sub-sub-items (sample 3)
public void init() { COM com_Column,com_Columns,com_Items; anytype var_Column,var_Columns,var_Items; int h,hChild; ; super(); exgantt1.BeginUpdate(); exgantt1.LinesAtRoot(-1/*exLinesAtRoot*/); exgantt1.DrawGridLines(-2/*exRowLines*/); exgantt1.AutoDrag(3/*exAutoDragPositionAny*/); exgantt1.HasLines(1/*exSolidLine*/); exgantt1.Indent(16); exgantt1.MarkSearchColumn(false); var_Columns = exgantt1.Columns(); com_Columns = var_Columns; var_Column = COM::createFromVariant(com_Columns.Add("")); com_Column = var_Column; com_Column.Def(17/*exCellCaptionFormat*/,COMVariant::createFromInt(1)); com_Column.FormatColumn("((1:=(0 :=(1 rpos '.|A-Z||a-z|')) rfind `.`) < 0 ? `<b>` + =:0 + `` : (=:0 mid (1 + 1 + =:1) ) + `)` ) + ` ` + value"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root"); com_Items.InsertItem(h,,"Child"); hChild = com_Items.InsertItem(h,,"Child"); com_Items.InsertItem(hChild,,"Child"); com_Items.InsertItem(hChild,,"Child"); com_Items.InsertItem(hChild,,"Child"); com_Items.InsertItem(h,,"Child"); com_Items.ExpandItem(0,true); h = com_Items.AddItem("Root"); com_Items.InsertItem(h,,"Child"); hChild = com_Items.InsertItem(h,,"Child"); com_Items.CellState(hChild,COMVariant::createFromInt(0),1); com_Items.InsertItem(hChild,,"Child"); com_Items.InsertItem(hChild,,"Child"); com_Items.InsertItem(hChild,,"Child"); com_Items.InsertItem(h,,"Child"); exgantt1.EndUpdate(); } |
896 |
I'm trying to use automatic numbering of the outline. How can I have A, B, C for root items, 1, 2, 3 for the sub-items, and a, b, c for sub-sub-items (sample 2)
public void init() { COM com_Column,com_Columns,com_Items; anytype var_Column,var_Columns,var_Items; int h,hChild; str var_s; ; super(); exgantt1.BeginUpdate(); exgantt1.LinesAtRoot(-1/*exLinesAtRoot*/); exgantt1.GridLineColor(WinApi::RGB2int(190,190,190)); exgantt1.DrawGridLines(-2/*exRowLines*/); exgantt1.AutoDrag(3/*exAutoDragPositionAny*/); exgantt1.HasLines(1/*exSolidLine*/); exgantt1.Indent(16); var_Columns = exgantt1.Columns(); com_Columns = var_Columns; com_Columns.Add("Default"); var_Column = COM::createFromVariant(com_Columns.Add("")); com_Column = var_Column; com_Column.Def(17/*exCellCaptionFormat*/,COMVariant::createFromInt(1)); com_Column.Def(49/*exCellPaddingRight*/,COMVariant::createFromInt(4)); com_Column.AllowSizing(false); com_Column.Width(36); com_Column.Position(0); var_s = "(1:=(0 :=(1 rpos '.|A-Z||a-z|')) rfind `.`) < 0 ? `<b>` + =:0 : (`............` left 2 * (=:0 count `.`)) + (=:0 mid (1 + 1 + =:"; var_s = var_s + "1) ) "; com_Column.FormatColumn(var_s); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root"); com_Items.InsertItem(h,,"Child"); hChild = com_Items.InsertItem(h,,"Child"); com_Items.InsertItem(hChild,,"Child"); com_Items.InsertItem(hChild,,"Child"); com_Items.InsertItem(hChild,,"Child"); com_Items.InsertItem(h,,"Child"); com_Items.ExpandItem(0,true); h = com_Items.AddItem("Root"); com_Items.InsertItem(h,,"Child"); hChild = com_Items.InsertItem(h,,"Child"); com_Items.CellState(hChild,COMVariant::createFromInt(0),1); com_Items.InsertItem(hChild,,"Child"); com_Items.InsertItem(hChild,,"Child"); com_Items.InsertItem(hChild,,"Child"); com_Items.InsertItem(h,,"Child"); exgantt1.EndUpdate(); } |
895 |
I'm trying to use automatic numbering of the outline. How can I have A, B, C for root items, 1, 2, 3 for the sub-items, and a, b, c for sub-sub-items (sample 1)
public void init() { COM com_Column,com_Columns,com_Items; anytype var_Column,var_Columns,var_Items; int h,hChild; ; super(); exgantt1.BeginUpdate(); exgantt1.LinesAtRoot(-1/*exLinesAtRoot*/); exgantt1.DrawGridLines(-2/*exRowLines*/); exgantt1.AutoDrag(3/*exAutoDragPositionAny*/); exgantt1.HasLines(1/*exSolidLine*/); exgantt1.Indent(16); var_Columns = exgantt1.Columns(); com_Columns = var_Columns; com_Columns.Add("Default"); var_Column = COM::createFromVariant(com_Columns.Add("")); com_Column = var_Column; com_Column.Def(17/*exCellCaptionFormat*/,COMVariant::createFromInt(1)); com_Column.Def(49/*exCellPaddingRight*/,COMVariant::createFromInt(4)); com_Column.Alignment(2/*RightAlignment*/); com_Column.AllowSizing(false); com_Column.Width(24); com_Column.Position(0); com_Column.FormatColumn("(1:=(0 :=(1 rpos '.|A-Z||a-z|')) rfind `.`) < 0 ? `<b>` + =:0 : `<i>` + (=:0 mid (1 + 1 + =:1) ) "); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root"); com_Items.InsertItem(h,,"Child"); hChild = com_Items.InsertItem(h,,"Child"); com_Items.InsertItem(hChild,,"Child"); com_Items.InsertItem(hChild,,"Child"); com_Items.InsertItem(hChild,,"Child"); com_Items.InsertItem(h,,"Child"); com_Items.ExpandItem(0,true); h = com_Items.AddItem("Root"); com_Items.InsertItem(h,,"Child"); hChild = com_Items.InsertItem(h,,"Child"); com_Items.CellState(hChild,COMVariant::createFromInt(0),1); com_Items.InsertItem(hChild,,"Child"); com_Items.InsertItem(hChild,,"Child"); com_Items.InsertItem(hChild,,"Child"); com_Items.InsertItem(h,,"Child"); exgantt1.EndUpdate(); } |
894 |
Is it possible to have a different alignment for parts of the cell's caption
public void init() { COM com_Column,com_Items; anytype var_Column,var_Items; int h; ; super(); exgantt1.BeginUpdate(); exgantt1.TreeColumnIndex(-1); exgantt1.DrawGridLines(-2/*exRowLines*/); /*should be called during the form's activate method*/ exgantt1.Chart().PaneWidth(true,0); var_Column = COM::createFromVariant(exgantt1.Columns().Add("Default")); com_Column = var_Column; com_Column.Def(0/*exCellHasCheckBox*/,COMVariant::createFromBoolean(true)); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.CellHAlignment(com_Items.AddItem("all-left"),COMVariant::createFromInt(0),0/*LeftAlignment*/); com_Items.CellHAlignment(com_Items.AddItem("all-center"),COMVariant::createFromInt(0),1/*CenterAlignment*/); com_Items.CellHAlignment(com_Items.AddItem("all-right"),COMVariant::createFromInt(0),2/*RightAlignment*/); h = com_Items.AddItem("left<c>center<r>right"); com_Items.CellCaptionFormat(h,COMVariant::createFromInt(0),1/*exHTML*/); exgantt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(true,0); } */ |
893 |
I have a column with Def(exCellSingleLine) property on False, word-wrapping, and I am wondering if possible to update the column's content while user is resizing it
public void init() { COM com_Column,com_Column1,com_Columns,com_Items; anytype var_Column,var_Column1,var_Columns,var_Items; ; super(); exgantt1.BeginUpdate(); /*should be called during the form's activate method*/ exgantt1.Chart().PaneWidth(true,0); var_Columns = exgantt1.Columns(); com_Columns = var_Columns; var_Column = COM::createFromVariant(com_Columns.Add("MultipleLine")); com_Column = var_Column; com_Column.Width(32); com_Column.Def(16/*exCellSingleLine*/,COMVariant::createFromBoolean(false)); com_Column.Def(64/*exColumnResizeContiguously*/,COMVariant::createFromBoolean(true)); var_Column1 = COM::createFromVariant(com_Columns.Add("SingleLine")); com_Column1 = var_Column1; com_Column1.Def(16/*exCellSingleLine*/,COMVariant::createFromBoolean(false)); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.CellCaption(com_Items.AddItem("This is a bit of long text that should break the line"),COMVariant::createFromInt(1),"This is a bit of long text that should break the line"); exgantt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(true,0); } */ |
892 |
How do I sort the index column as numeric
// AddItem event - Occurs after a new Item has been inserted to Items collection. void onEvent_AddItem(int _Item) { COM com_Items; anytype var_Items; ; var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.CellData(_Item,COMVariant::createFromInt(1),com_Items.ItemToIndex(_Item)); } public void init() { COM com_Column,com_Column1,com_Items; anytype var_Column,var_Column1,var_Items; ; super(); exgantt1.BeginUpdate(); exgantt1.DrawGridLines(-1/*exAllLines*/); exgantt1.ColumnAutoResize(true); exgantt1.ShowFocusRect(false); var_Column = COM::createFromVariant(exgantt1.Columns().Add("Next")); com_Column = var_Column; com_Column.Def(48/*exCellPaddingLeft*/,COMVariant::createFromInt(4)); com_Column.Def(52/*exHeaderPaddingLeft*/,COMVariant::createFromInt(4)); var_Column1 = COM::createFromVariant(exgantt1.Columns().Add("Index")); com_Column1 = var_Column1; com_Column1.AllowSizing(false); com_Column1.Width(48); com_Column1.FormatColumn("(((0 := (1 index ``)) mod 3) case ( default: ``; 0 : `<r><fgcolor=B0B0B0>`; 1: ``; 2 : `<c><fgcolor=808080>` )) + str(=:0)"); com_Column1.Def(17/*exCellCaptionFormat*/,COMVariant::createFromInt(1)); com_Column1.SortType(5/*SortUserData*/); com_Column1.Position(0); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddItem("Item 1"); com_Items.AddItem("Item 2"); com_Items.AddItem("Item 3"); com_Items.AddItem("Item 4"); com_Items.AddItem("Item 5"); com_Items.AddItem("Item 6"); com_Items.AddItem("Item 7"); com_Items.AddItem("Item 8"); com_Items.AddItem("Item 9"); com_Items.AddItem("Item 10"); exgantt1.EndUpdate(); } |
891 |
How can I put icons/images into buttons
public void init() { COM com_Column,com_Items; anytype var_Column,var_Items; str var_s; ; super(); exgantt1.BeginUpdate(); exgantt1.ColumnAutoResize(true); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exgantt1.Images(COMVariant::createFromStr(var_s)); var_Column = COM::createFromVariant(exgantt1.Columns().Add("C+B")); com_Column = var_Column; com_Column.AllowSizing(false); com_Column.Width(48); com_Column.FormatColumn("` <img>` + ( 1 + (1 index ``) mod 3 ) + `</img> `"); com_Column.Def(17/*exCellCaptionFormat*/,COMVariant::createFromInt(1)); com_Column.Def(0/*exCellHasCheckBox*/,COMVariant::createFromBoolean(true)); com_Column.Def(2/*exCellHasButton*/,COMVariant::createFromBoolean(true)); com_Column.Def(3/*exCellButtonAutoWidth*/,COMVariant::createFromBoolean(true)); exgantt1.Columns().Add(""); exgantt1.DrawGridLines(2/*exVLines*/); exgantt1.DefaultItemHeight(20); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddItem(""); com_Items.AddItem(""); com_Items.AddItem(""); com_Items.AddItem(""); com_Items.AddItem(""); com_Items.AddItem(""); com_Items.AddItem(""); com_Items.AddItem(""); exgantt1.EndUpdate(); } |
890 |
Is it possible to have a CheckBox and Button TOGETHER on all cells in a column
// CellButtonClick event - Fired after the user clicks on the cell of button type. void onEvent_CellButtonClick(int _Item,int _ColIndex) { ; print( "CellButtonClick" ); print( _Item ); } // CellStateChanged event - Fired after cell's state has been changed. void onEvent_CellStateChanged(int _Item,int _ColIndex) { ; print( "CellStateChanged" ); print( _Item ); } public void init() { COM com_Column,com_Column1,com_Items; anytype var_Column,var_Column1,var_Items; ; super(); exgantt1.BeginUpdate(); exgantt1.ColumnAutoResize(true); var_Column = COM::createFromVariant(exgantt1.Columns().Add("")); com_Column = var_Column; com_Column.AllowSizing(false); com_Column.Width(32); com_Column.FormatColumn("1 index ``"); var_Column1 = COM::createFromVariant(exgantt1.Columns().Add("Def")); com_Column1 = var_Column1; com_Column1.AllowSizing(false); com_Column1.Width(48); com_Column1.FormatColumn("` `"); com_Column1.Def(0/*exCellHasCheckBox*/,COMVariant::createFromBoolean(true)); com_Column1.Def(2/*exCellHasButton*/,COMVariant::createFromBoolean(true)); com_Column1.Def(3/*exCellButtonAutoWidth*/,COMVariant::createFromBoolean(true)); exgantt1.Columns().Add(""); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddItem(""); com_Items.AddItem(""); com_Items.AddItem(""); com_Items.AddItem(""); com_Items.AddItem(""); com_Items.AddItem(""); com_Items.AddItem(""); com_Items.AddItem(""); exgantt1.EndUpdate(); } |
889 |
Does filtering work with umlauts / accents characters
public void init() { COM com_Column,com_Column1,com_Items; anytype var_Column,var_Column1,var_Items; ; super(); exgantt1.BeginUpdate(); /*should be called during the form's activate method*/ exgantt1.Chart().PaneWidth(true,0); var_Column = COM::createFromVariant(exgantt1.Columns().Add("Names")); com_Column = var_Column; com_Column.DisplayFilterButton(true); com_Column.FilterType(3/*exPattern*/); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddItem("Mantel"); com_Items.AddItem("Mechanik"); com_Items.AddItem("Motor"); com_Items.AddItem("Murks"); com_Items.AddItem("Märchen"); com_Items.AddItem("Möhren"); com_Items.AddItem("Mühle"); com_Items.AddItem("Sérigraphie"); var_Column1 = COM::createFromObject(exgantt1.Columns()).Item(COMVariant::createFromInt(0)); com_Column1 = var_Column1; com_Column1.Filter("*ä*"); exgantt1.ApplyFilter(); exgantt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(true,0); } */ |
888 |
Can I set the search box / filterbarprompt to invisible, so I can use my own input and *string* via VBA
public void init() { COM com_Columns,com_Items; anytype var_Columns,var_Items; int h0; ; super(); exgantt1.BeginUpdate(); exgantt1.ColumnAutoResize(true); exgantt1.ContinueColumnScroll(0); exgantt1.MarkSearchColumn(false); exgantt1.SearchColumnIndex(1); exgantt1.FilterBarHeight(0); exgantt1.FilterBarPromptVisible(true); /*should be called during the form's activate method*/ exgantt1.Chart().PaneWidth(true,0); var_Columns = exgantt1.Columns(); com_Columns = var_Columns; COM::createFromVariant(com_Columns.Add("Name")).Width(96); COM::createFromVariant(com_Columns.Add("Title")).Width(96); com_Columns.Add("City"); var_Items = exgantt1.Items(); com_Items = var_Items; h0 = com_Items.AddItem("Nancy Davolio"); com_Items.CellCaption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.CellCaption(h0,COMVariant::createFromInt(2),"Seattle"); h0 = com_Items.AddItem("Andrew Fuller"); com_Items.CellCaption(h0,COMVariant::createFromInt(1),"Vice President, Sales"); com_Items.CellCaption(h0,COMVariant::createFromInt(2),"Tacoma"); com_Items.SelectItem(h0,true); h0 = com_Items.AddItem("Janet Leverling"); com_Items.CellCaption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.CellCaption(h0,COMVariant::createFromInt(2),"Kirkland"); h0 = com_Items.AddItem("Margaret Peacock"); com_Items.CellCaption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.CellCaption(h0,COMVariant::createFromInt(2),"Redmond"); h0 = com_Items.AddItem("Steven Buchanan"); com_Items.CellCaption(h0,COMVariant::createFromInt(1),"Sales Manager"); com_Items.CellCaption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.AddItem("Michael Suyama"); com_Items.CellCaption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.CellCaption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.AddItem("Robert King"); com_Items.CellCaption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.CellCaption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.AddItem("Laura Callahan"); com_Items.CellCaption(h0,COMVariant::createFromInt(1),"Inside Sales Coordinator"); com_Items.CellCaption(h0,COMVariant::createFromInt(2),"Seattle"); h0 = com_Items.AddItem("Anne Dodsworth"); com_Items.CellCaption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.CellCaption(h0,COMVariant::createFromInt(2),"London"); exgantt1.FilterBarPromptPattern("London"); exgantt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(true,0); } */ |
887 |
How to load a hierarchy using the control's DataSource property (Parent-ID-Relation)
// AddItem event - Occurs after a new Item has been inserted to Items collection. void onEvent_AddItem(int _Item) { COM com_Items; anytype var_Items; ; var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.SetParent(_Item,com_Items.FindItem(com_Items.CellCaption(_Item,"ReportsTo"),"EmployeeID")); } public void init() { COM com_Items,com_rs; anytype rs,var_Items; ; super(); exgantt1.BeginUpdate(); /*should be called during the form's activate method*/ exgantt1.Chart().PaneWidth(true,0); exgantt1.LinesAtRoot(-1/*exLinesAtRoot*/); exgantt1.ColumnAutoResize(false); exgantt1.ContinueColumnScroll(false); // Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project. rs = COM::createFromObject(new ADODB.Recordset()); com_rs = rs; rs.Open("SELECT * FROM Employees ORDER BY ReportsTo","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGantt\\Sample\\Access\\SAMPLE.MDB",3/*adOpenStatic*/,3/*adLockOptimistic*/); exgantt1.DataSource(rs); exgantt1.Items().ExpandItem(0,true); exgantt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(true,0); } */ |
886 |
The week number is not correct. What can I do
|
885 |
How can I display my logo on print/print-preview
|
884 |
How can I align captions of items with checkbox, with items with no checkbox
public void init() { COM com_Items; anytype var_Items; ; super(); exgantt1.BeginUpdate(); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.CellImages(com_Items.AddItem(COMVariant::createFromInt(0)),COMVariant::createFromInt(0),"1"); com_Items.CellHasCheckBox(com_Items.AddItem(COMVariant::createFromInt(1)),COMVariant::createFromInt(0),true); com_Items.CellImages(com_Items.AddItem(COMVariant::createFromInt(2)),COMVariant::createFromInt(0),"1"); exgantt1.EndUpdate(); } |
883 |
How do I show the chart's labels in 24-hour clock format
public void init() { COM com_Chart,com_Level,com_Level1,com_Level2; anytype var_Chart,var_Level,var_Level1,var_Level2; ; super(); var_Chart = exgantt1.Chart(); com_Chart = var_Chart; /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,0); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); com_Chart.LevelCount(3); var_Level = com_Chart.Level(0); com_Level = var_Level; com_Level.Label("<%mmm%> <%d%>, <%yyyy%>"); com_Level.Alignment(17/*exHOutside | CenterAlignment*/); com_Level.Unit(4096/*exDay*/); var_Level1 = com_Chart.Level(1); com_Level1 = var_Level1; com_Level1.Label("<b><%h%>:00</b>"); com_Level1.Alignment(1/*CenterAlignment*/); com_Level1.Unit(65536/*exHour*/); com_Level1.DrawTickLines(true); com_Level1.DrawGridLines(true); var_Level2 = com_Chart.Level(2); com_Level2 = var_Level2; com_Level2.Label("<%nn%>"); com_Level2.Unit(1048576/*exMinute*/); com_Level2.Count(15); com_Chart.ScrollTo(str2Datetime("1/1/2001 8:30:00",213),COMVariant::createFromInt(0)); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(false,0); } */ |
882 |
How do I show the chart's labels in 12-hour clock format
public void init() { COM com_Chart,com_Level,com_Level1,com_Level2; anytype var_Chart,var_Level,var_Level1,var_Level2; ; super(); var_Chart = exgantt1.Chart(); com_Chart = var_Chart; /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,0); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); com_Chart.LevelCount(3); var_Level = com_Chart.Level(0); com_Level = var_Level; com_Level.Label("<%mmm%> <%d%>, <%yyyy%>"); com_Level.Alignment(17/*exHOutside | CenterAlignment*/); com_Level.Unit(4096/*exDay*/); var_Level1 = com_Chart.Level(1); com_Level1 = var_Level1; com_Level1.Label("<b><%h%>:00</b> <%AM/PM%>"); com_Level1.Alignment(1/*CenterAlignment*/); com_Level1.Unit(65536/*exHour*/); com_Level1.DrawTickLines(true); com_Level1.DrawGridLines(true); var_Level2 = com_Chart.Level(2); com_Level2 = var_Level2; com_Level2.Label("<%nn%>"); com_Level2.Unit(1048576/*exMinute*/); com_Level2.Count(15); com_Chart.ScrollTo(str2Datetime("1/1/2001 8:30:00",213),COMVariant::createFromInt(0)); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(false,0); } */ |
881 |
The control does not ensure the item to fit the control's client area once the user clicks the cell's button or check box. What can be done
// MouseDown event - Occurs when the user presses a mouse button. void onEvent_MouseDown(int _Button,int _Shift,int _X,int _Y) { // Items.EnsureVisibleItem(ItemFromPoint(-1,-1,c,hit)) ; } public void init() { COM com_Column,com_Items; anytype var_Column,var_Items; ; super(); exgantt1.BeginUpdate(); exgantt1.TreeColumnIndex(-1); exgantt1.SelForeColor(exgantt1.ForeColor()); var_Column = COM::createFromVariant(exgantt1.Columns().Add("Buttons")); com_Column = var_Column; com_Column.Alignment(1/*CenterAlignment*/); com_Column.Def(2/*exCellHasButton*/,COMVariant::createFromBoolean(true)); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddItem("Button A"); com_Items.AddItem("Button B"); com_Items.AddItem("Button C"); exgantt1.EndUpdate(); } |
880 |
Do you have any Fit-To-Page options when printing the control (W x T, Fit-To )
// AddItem event - Occurs after a new Item has been inserted to Items collection. void onEvent_AddItem(int _Item) { COM com_Items; anytype var_Items; ; var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddBar(_Item,"Task",com_Items.CellCaption(_Item,COMVariant::createFromInt(2)),com_Items.CellCaption(_Item,COMVariant::createFromInt(4))); } public void init() { COM com_Items,com_Print,com_rs; anytype rs,var_Items,var_Print; ; super(); exgantt1.BeginUpdate(); exgantt1.ColumnAutoResize(false); exgantt1.ContinueColumnScroll(false); // Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project. rs = COM::createFromObject(new ADODB.Recordset()); com_rs = rs; rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGantt\\Sample\\Access\\sample.accdb",3/*adOpenStatic*/,3/*adLockOptimistic*/); exgantt1.DataSource(rs); exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("8/4/1994",213))); exgantt1.EndUpdate(); // Add 'exprint.dll(ExPrint.dll)' reference to your project. // Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project. var_Print = COM::createFromObject(new EXPRINTLib.exprint()); com_Print = var_Print; com_Print.Options("FitToPage =1 x 2"); com_Print.PrintExt(exgantt1); com_Print.Preview(); } |
879 |
Do you have any Fit-To-Page options when printing the control ( x T, Fit-To Tall )
// AddItem event - Occurs after a new Item has been inserted to Items collection. void onEvent_AddItem(int _Item) { COM com_Items; anytype var_Items; ; var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddBar(_Item,"Task",com_Items.CellCaption(_Item,COMVariant::createFromInt(2)),com_Items.CellCaption(_Item,COMVariant::createFromInt(4))); } public void init() { COM com_Items,com_Print,com_rs; anytype rs,var_Items,var_Print; ; super(); exgantt1.BeginUpdate(); exgantt1.ColumnAutoResize(false); exgantt1.ContinueColumnScroll(false); // Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project. rs = COM::createFromObject(new ADODB.Recordset()); com_rs = rs; rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGantt\\Sample\\Access\\sample.accdb",3/*adOpenStatic*/,3/*adLockOptimistic*/); exgantt1.DataSource(rs); exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("8/4/1994",213))); exgantt1.EndUpdate(); // Add 'exprint.dll(ExPrint.dll)' reference to your project. // Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project. var_Print = COM::createFromObject(new EXPRINTLib.exprint()); com_Print = var_Print; com_Print.Options("FitToPage = x 2"); com_Print.PrintExt(exgantt1); com_Print.Preview(); } |
878 |
Do you have any Fit-To-Page options when printing the control ( W x, Fit-To Wide )
// AddItem event - Occurs after a new Item has been inserted to Items collection. void onEvent_AddItem(int _Item) { COM com_Items; anytype var_Items; ; var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddBar(_Item,"Task",com_Items.CellCaption(_Item,COMVariant::createFromInt(2)),com_Items.CellCaption(_Item,COMVariant::createFromInt(4))); } public void init() { COM com_Items,com_Print,com_rs; anytype rs,var_Items,var_Print; ; super(); exgantt1.BeginUpdate(); exgantt1.ColumnAutoResize(false); exgantt1.ContinueColumnScroll(false); // Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project. rs = COM::createFromObject(new ADODB.Recordset()); com_rs = rs; rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGantt\\Sample\\Access\\sample.accdb",3/*adOpenStatic*/,3/*adLockOptimistic*/); exgantt1.DataSource(rs); exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("8/4/1994",213))); exgantt1.EndUpdate(); // Add 'exprint.dll(ExPrint.dll)' reference to your project. // Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project. var_Print = COM::createFromObject(new EXPRINTLib.exprint()); com_Print = var_Print; com_Print.Options("FitToPage = 2 x"); com_Print.PrintExt(exgantt1); com_Print.Preview(); } |
877 |
Do you have any Fit-To-Page options when printing the control ( percent view, Adjust-To )
// AddItem event - Occurs after a new Item has been inserted to Items collection. void onEvent_AddItem(int _Item) { COM com_Items; anytype var_Items; ; var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddBar(_Item,"Task",com_Items.CellCaption(_Item,COMVariant::createFromInt(2)),com_Items.CellCaption(_Item,COMVariant::createFromInt(4))); } public void init() { COM com_Items,com_Print,com_rs; anytype rs,var_Items,var_Print; ; super(); exgantt1.BeginUpdate(); exgantt1.ColumnAutoResize(false); exgantt1.ContinueColumnScroll(false); // Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project. rs = COM::createFromObject(new ADODB.Recordset()); com_rs = rs; rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGantt\\Sample\\Access\\sample.accdb",3/*adOpenStatic*/,3/*adLockOptimistic*/); exgantt1.DataSource(rs); exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("8/4/1994",213))); exgantt1.EndUpdate(); // Add 'exprint.dll(ExPrint.dll)' reference to your project. // Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project. var_Print = COM::createFromObject(new EXPRINTLib.exprint()); com_Print = var_Print; com_Print.Options("FitToPage = 50%"); com_Print.PrintExt(exgantt1); com_Print.Preview(); } |
876 |
Does the title of the cell's tooltip supports HTML format
public void init() { COM com_Column,com_Items; anytype var_Column,var_Items; str var_s; ; super(); exgantt1.BeginUpdate(); /*should be called during the form's activate method*/ exgantt1.Chart().PaneWidth(true,0); var_Column = COM::createFromVariant(exgantt1.Columns().Add("")); com_Column = var_Column; com_Column.Caption(""); com_Column.HTMLCaption("Column"); var_Items = exgantt1.Items(); com_Items = var_Items; var_s = "<c><b><fgcolor=FF0000>Title</fgcolor></b><br>This is bit of text that's shown when the user hovers the cell. This shows the titl"; var_s = var_s + "e centered with a different color."; com_Items.CellToolTip(com_Items.AddItem("tooltip w/h different title"),COMVariant::createFromInt(0),var_s); exgantt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(true,0); } */ |
875 |
How do I specify a different title for the cell's tooltip
public void init() { COM com_Column,com_Items; anytype var_Column,var_Items; ; super(); exgantt1.BeginUpdate(); /*should be called during the form's activate method*/ exgantt1.Chart().PaneWidth(true,0); var_Column = COM::createFromVariant(exgantt1.Columns().Add("")); com_Column = var_Column; com_Column.Caption("This is the title"); com_Column.HTMLCaption("Column"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.CellToolTip(com_Items.AddItem("tooltip w/h different title"),COMVariant::createFromInt(0),"This is bit of text that's shown when the user hovers the cell."); exgantt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(true,0); } */ |
874 |
The cell's tooltip displays the column's caption in its title. How can I get ride of that
public void init() { COM com_Column,com_Columns,com_Items; anytype var_Column,var_Columns,var_Items; int h; ; super(); exgantt1.BeginUpdate(); /*should be called during the form's activate method*/ exgantt1.Chart().PaneWidth(true,0); var_Columns = exgantt1.Columns(); com_Columns = var_Columns; com_Columns.Add("C1"); com_Columns.Add("C2"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("tooltip w/h caption"); com_Items.CellToolTip(h,COMVariant::createFromInt(0),"This is bit of text that's shown when the user hovers the cell. This shows the column's caption in the title."); com_Items.CellCaption(h,COMVariant::createFromInt(1),"tooltip no caption"); com_Items.CellToolTip(h,COMVariant::createFromInt(1),"This is bit of text that's shown when the user hovers the cell. This shows no column's caption in the title."); var_Column = COM::createFromObject(exgantt1.Columns()).Item("C2"); com_Column = var_Column; com_Column.HTMLCaption(com_Column.Caption()); com_Column.Caption(""); exgantt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(true,0); } */ |
873 |
How can I programmatically show the column's filter
// RClick event - Fired when right mouse button is clicked void onEvent_RClick() { COM com_Column; anytype var_Column; int i; ; i = exgantt1.ItemFromPoint(-1,-1,c,hit); var_Column = COM::createFromObject(exgantt1.Columns()).Item(c); com_Column = var_Column; com_Column.ShowFilter("-1,-1,128,128"); } public void init() { COM com_Column,com_Items; anytype var_Column,var_Items; int i; ; super(); exgantt1.BeginUpdate(); exgantt1.ShowFocusRect(false); var_Column = COM::createFromVariant(exgantt1.Columns().Add("Items ")); com_Column = var_Column; com_Column.DisplayFilterPattern(false); com_Column.FilterList(9472/*exShowExclude | exShowFocusItem | exShowCheckBox*/); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddItem("Item 1"); com_Items.AddItem("Item 2"); com_Items.AddItem("Item 3"); exgantt1.EndUpdate(); } |
872 |
I want to be able to click on one of the headers, and sort by other column. How can I do that (method 2)
// ColumnClick event - Fired after the user clicks on column's header. void onEvent_ColumnClick(COM _Column) { // Column.SortOrder = 1 COM com_Column; anytype var_Column; ; exgantt1.SortOnClick(-1/*exDefaultSort*/); var_Column = COM::createFromObject(exgantt1.Columns()).Item("Sort"); com_Column = var_Column; com_Column.SortOrder(1/*SortAscending*/); exgantt1.SortOnClick(1/*exUserSort*/); } public void init() { COM com_Column,com_Items; anytype var_Column,var_Items; ; super(); exgantt1.BeginUpdate(); exgantt1.MarkSearchColumn(false); exgantt1.SortOnClick(1/*exUserSort*/); exgantt1.Columns().Add("Items"); COM::createFromVariant(exgantt1.Columns().Add("Sort")).Visible(false); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.CellCaption(com_Items.AddItem("Item 1 (3)"),COMVariant::createFromInt(1),COMVariant::createFromInt(3)); com_Items.CellCaption(com_Items.AddItem("Item 2 (1)"),COMVariant::createFromInt(1),COMVariant::createFromInt(1)); com_Items.CellCaption(com_Items.AddItem("Item 3 (2)"),COMVariant::createFromInt(1),COMVariant::createFromInt(2)); exgantt1.EndUpdate(); } |
871 |
I want to be able to click on one of the headers, and sort by other column. How can I do that (method 1)
// ColumnClick event - Fired after the user clicks on column's header. void onEvent_ColumnClick(COM _Column) { // Column.SortOrder = 1 ; exgantt1.Items().SortChildren(0,"Sort",true); } public void init() { COM com_Items; anytype var_Items; ; super(); exgantt1.BeginUpdate(); exgantt1.MarkSearchColumn(false); exgantt1.SortOnClick(1/*exUserSort*/); exgantt1.Columns().Add("Items"); COM::createFromVariant(exgantt1.Columns().Add("Sort")).Visible(false); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.CellCaption(com_Items.AddItem("Item 1 (3)"),COMVariant::createFromInt(1),COMVariant::createFromInt(3)); com_Items.CellCaption(com_Items.AddItem("Item 2 (1)"),COMVariant::createFromInt(1),COMVariant::createFromInt(1)); com_Items.CellCaption(com_Items.AddItem("Item 3 (2)"),COMVariant::createFromInt(1),COMVariant::createFromInt(2)); exgantt1.EndUpdate(); } |
870 |
How can I sort by two-columns, one by date and one by time
public void init() { COM com_Column,com_Columns,com_Items; anytype var_Column,var_Columns,var_Items; int h; ; super(); exgantt1.BeginUpdate(); exgantt1.SingleSort(false); var_Columns = exgantt1.Columns(); com_Columns = var_Columns; COM::createFromVariant(com_Columns.Add("Index")).FormatColumn("1 index ``"); COM::createFromVariant(com_Columns.Add("Date")).SortType(2/*SortDate*/); var_Column = COM::createFromVariant(com_Columns.Add("Time")); com_Column = var_Column; com_Column.SortType(4/*SortTime*/); com_Column.FormatColumn("time(value)"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem(COMVariant::createFromInt(0)); com_Items.CellCaption(h,COMVariant::createFromInt(1),COMVariant::createFromDate(str2Date("1/1/2001",213))); com_Items.CellCaption(h,COMVariant::createFromInt(2),COMVariant::createFromUtcDateTime(str2Datetime("1/1/2001 10:00:00",213))); h = com_Items.AddItem(COMVariant::createFromInt(0)); com_Items.CellCaption(h,COMVariant::createFromInt(1),COMVariant::createFromDate(str2Date("12/31/2000",213))); com_Items.CellCaption(h,COMVariant::createFromInt(2),COMVariant::createFromUtcDateTime(str2Datetime("1/1/2001 10:00:00",213))); h = com_Items.AddItem(COMVariant::createFromInt(0)); com_Items.CellCaption(h,COMVariant::createFromInt(1),COMVariant::createFromDate(str2Date("1/1/2001",213))); com_Items.CellCaption(h,COMVariant::createFromInt(2),COMVariant::createFromUtcDateTime(str2Datetime("1/1/2001 6:00:00",213))); h = com_Items.AddItem(COMVariant::createFromInt(0)); com_Items.CellCaption(h,COMVariant::createFromInt(1),COMVariant::createFromDate(str2Date("12/31/2000",213))); com_Items.CellCaption(h,COMVariant::createFromInt(2),COMVariant::createFromUtcDateTime(str2Datetime("1/1/2001 8:00:00",213))); h = com_Items.AddItem(COMVariant::createFromInt(0)); com_Items.CellCaption(h,COMVariant::createFromInt(1),COMVariant::createFromDate(str2Date("1/1/2001",213))); com_Items.CellCaption(h,COMVariant::createFromInt(2),COMVariant::createFromUtcDateTime(str2Datetime("1/1/2001 8:00:00",213))); h = com_Items.AddItem(COMVariant::createFromInt(0)); com_Items.CellCaption(h,COMVariant::createFromInt(1),COMVariant::createFromDate(str2Date("12/31/2000",213))); com_Items.CellCaption(h,COMVariant::createFromInt(2),COMVariant::createFromUtcDateTime(str2Datetime("1/1/2001 6:00:00",213))); exgantt1.Layout("multiplesort=\"C1:1 C2:1\""); exgantt1.EndUpdate(); } |
869 |
How can I connect to a DBF file
|
868 |
How can I change the bar's color based on values on the columns
// AddItem event - Occurs after a new Item has been inserted to Items collection. void onEvent_AddItem(int _Item) { COM com_Items; anytype var_Items; ; var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddBar(_Item,"Task",com_Items.CellCaption(_Item,COMVariant::createFromInt(2)),com_Items.CellCaption(_Item,COMVariant::createFromInt(4))); } public void init() { COM com_Chart,com_ConditionalFormat,com_ConditionalFormat1,com_ConditionalFormat2,com_ConditionalFormats,com_Items,com_rs; anytype rs,var_Chart,var_ConditionalFormat,var_ConditionalFormat1,var_ConditionalFormat2,var_ConditionalFormats,var_Items; ; super(); exgantt1.BeginUpdate(); var_Chart = exgantt1.Chart(); com_Chart = var_Chart; com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("8/3/1994",213))); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,256); com_Chart.LevelCount(2); com_Chart.UnitScale(4096/*exDay*/); com_Chart.FirstWeekDay(1/*exMonday*/); com_Chart.OverviewVisible(-1/*exOverviewShowAll*/); exgantt1.ColumnAutoResize(false); exgantt1.ContinueColumnScroll(false); // Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project. rs = COM::createFromObject(new ADODB.Recordset()); com_rs = rs; rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGantt\\Sample\\Access\\sample.accdb",3/*adOpenStatic*/,3/*adLockOptimistic*/); exgantt1.DataSource(rs); var_ConditionalFormats = exgantt1.ConditionalFormats(); com_ConditionalFormats = var_ConditionalFormats; var_ConditionalFormat = com_ConditionalFormats.Add("1"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.ApplyTo(1); com_ConditionalFormat.Bold(true); com_ConditionalFormat.BackColor(WinApi::RGB2int(250,250,250)); var_ConditionalFormat1 = com_ConditionalFormats.Add("%1 = 5"); com_ConditionalFormat1 = var_ConditionalFormat1; com_ConditionalFormat1.ApplyToBars("Task"); com_ConditionalFormat1.BarColor(WinApi::RGB2int(255,0,0)); com_ConditionalFormat1.ForeColor(WinApi::RGB2int(255,0,0)); com_ConditionalFormat1.BarOverviewColor(WinApi::RGB2int(255,0,0)); var_ConditionalFormat2 = com_ConditionalFormats.Add("%1 = 3"); com_ConditionalFormat2 = var_ConditionalFormat2; com_ConditionalFormat2.ApplyToBars("Task"); com_ConditionalFormat2.BarColor(WinApi::RGB2int(0,255,0)); com_ConditionalFormat2.ForeColor(WinApi::RGB2int(0,255,0)); com_ConditionalFormat2.BarOverviewColor(WinApi::RGB2int(0,255,0)); exgantt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(false,256); } */ |
867 |
Does your control supports scrolling by touching the screen
|
866 |
How can I export the control's content to a PDF document (method 1)
public void init() { COM com_Chart,com_Items,com_Print; anytype var_Chart,var_Items,var_Print; ; super(); exgantt1.BeginUpdate(); exgantt1.MarkSearchColumn(false); exgantt1.Columns().Add("Tasks"); var_Chart = exgantt1.Chart(); com_Chart = var_Chart; /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,196); com_Chart.LevelCount(2); com_Chart.ShowEmptyBars(1); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2009",213))); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddBar(com_Items.AddItem("Task 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2009",213)),COMVariant::createFromDate(str2Date("1/7/2009",213))); com_Items.AddBar(com_Items.AddItem("Task 2"),"Task",COMVariant::createFromDate(str2Date("1/4/2009",213)),COMVariant::createFromDate(str2Date("1/9/2009",213))); // Add 'exprint.dll(ExPrint.dll)' reference to your project. // Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project. var_Print = COM::createFromObject(new EXPRINTLib.exprint()); com_Print = var_Print; com_Print.PrintExt(exgantt1); com_Print.CopyTo("c:/temp/xtest.pdf"); print( "Look for C:\\Temp\\xtest.pdf file." ); exgantt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(false,196); } */ |
865 |
How can I export the control's content to a PDF document (method 2)
public void init() { COM com_Chart,com_Items; COMVariant var_CopyTo; anytype var_Chart,var_Items; ; super(); exgantt1.BeginUpdate(); exgantt1.MarkSearchColumn(false); exgantt1.Columns().Add("Tasks"); var_Chart = exgantt1.Chart(); com_Chart = var_Chart; /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,196); com_Chart.LevelCount(2); com_Chart.ShowEmptyBars(1); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2009",213))); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddBar(com_Items.AddItem("Task 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2009",213)),COMVariant::createFromDate(str2Date("1/7/2009",213))); com_Items.AddBar(com_Items.AddItem("Task 2"),"Task",COMVariant::createFromDate(str2Date("1/4/2009",213)),COMVariant::createFromDate(str2Date("1/9/2009",213))); var_CopyTo = exgantt1.CopyTo("c:/temp/xtest.pdf"); print( "Look for C:\\Temp\\xtest.pdf file." ); exgantt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(false,196); } */ |
864 |
Is there a syntax for conditional formatting of items, based on CellState/CellStateChange
// CellStateChanged event - Fired after cell's state has been changed. void onEvent_CellStateChanged(int _Item,int _ColIndex) { COM com_Items; anytype var_Items; ; var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.CellCaption(_Item,COMVariant::createFromInt(2),com_Items.CellState(_Item,COMVariant::createFromInt(0))); } public void init() { COM com_Column,com_ConditionalFormat,com_Items; anytype var_Column,var_ConditionalFormat,var_Items; int h; ; super(); exgantt1.BeginUpdate(); exgantt1.ShowFocusRect(false); exgantt1.SelBackMode(1/*exTransparent*/); var_ConditionalFormat = COM::createFromObject(exgantt1.ConditionalFormats()).Add("%2 != 0"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.Bold(true); com_ConditionalFormat.ForeColor(WinApi::RGB2int(255,0,0)); com_ConditionalFormat.ApplyTo(-1/*exFormatToItems*/); var_Column = COM::createFromVariant(exgantt1.Columns().Add("")); com_Column = var_Column; com_Column.Def(0/*exCellHasCheckBox*/,COMVariant::createFromBoolean(true)); com_Column.Width(16); com_Column.AllowSizing(false); exgantt1.Columns().Add("Information"); COM::createFromVariant(exgantt1.Columns().Add("Hidden")).Visible(false); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.CellCaption(com_Items.AddItem(""),COMVariant::createFromInt(1),"This is a bit of text associated"); h = com_Items.AddItem(""); com_Items.CellCaption(h,COMVariant::createFromInt(1),"This is a bit of text associated"); com_Items.CellState(h,COMVariant::createFromInt(0),1); com_Items.CellCaption(com_Items.AddItem(""),COMVariant::createFromInt(1),"This is a bit of text associated"); exgantt1.EndUpdate(); } |
863 |
How can I use no scroll bars for touch-screens
|
862 |
How can I print the selected items only
// AddItem event - Occurs after a new Item has been inserted to Items collection. void onEvent_AddItem(int _Item) { COM com_Items; anytype var_Items; ; var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddBar(_Item,"Task",com_Items.CellCaption(_Item,COMVariant::createFromInt(2)),com_Items.CellCaption(_Item,COMVariant::createFromInt(4))); } public void init() { COM com_Items,com_Print,com_rs; anytype rs,var_Items,var_Print; ; super(); exgantt1.BeginUpdate(); exgantt1.SingleSel(false); exgantt1.ColumnAutoResize(false); exgantt1.ContinueColumnScroll(false); // Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project. rs = COM::createFromObject(new ADODB.Recordset()); com_rs = rs; rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGantt\\Sample\\Access\\sample.accdb",3/*adOpenStatic*/,3/*adLockOptimistic*/); exgantt1.DataSource(rs); exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("8/4/1994",213))); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.SelectItem(com_Items.ItemByIndex(0),true); com_Items.SelectItem(com_Items.ItemByIndex(2),true); com_Items.SelectItem(com_Items.ItemByIndex(4),true); exgantt1.EndUpdate(); // Add 'exprint.dll(ExPrint.dll)' reference to your project. // Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project. var_Print = COM::createFromObject(new EXPRINTLib.exprint()); com_Print = var_Print; com_Print.Options("Print = Selection"); com_Print.PrintExt(exgantt1); com_Print.Preview(); } |
861 |
How can I sort the columns to be displayed on the columns floating bar
|
860 |
How can I add a vertical padding
public void init() { COM com_Column,com_Items; anytype var_Column,var_Items; ; super(); exgantt1.BeginUpdate(); exgantt1.DrawGridLines(-1/*exAllLines*/); var_Column = COM::createFromVariant(exgantt1.Columns().Add("Padding")); com_Column = var_Column; com_Column.Def(0/*exCellHasCheckBox*/,COMVariant::createFromBoolean(true)); com_Column.Def(16/*exCellSingleLine*/,COMVariant::createFromBoolean(false)); com_Column.Def(48/*exCellPaddingLeft*/,COMVariant::createFromInt(6)); com_Column.Def(49/*exCellPaddingRight*/,COMVariant::createFromInt(6)); com_Column.Def(50/*exCellPaddingTop*/,COMVariant::createFromInt(6)); com_Column.Def(51/*exCellPaddingBottom*/,COMVariant::createFromInt(6)); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddItem("padding"); com_Items.AddItem("padding"); exgantt1.EndUpdate(); } |
859 |
How do you embed HTML options into the anchor click string
// AnchorClick event - Occurs when an anchor element is clicked. void onEvent_AnchorClick(str _AnchorID,str _Options) { ; print( _AnchorID ); print( _Options ); } public void init() { COM com_Columns,com_Items; anytype var_Columns,var_Items; ; super(); exgantt1.BeginUpdate(); var_Columns = exgantt1.Columns(); com_Columns = var_Columns; COM::createFromVariant(com_Columns.Add("Car")).Def(17/*exCellCaptionFormat*/,COMVariant::createFromInt(1)); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddItem("<a mazda_1;options for 1>Mazda <b>1</b></a>"); com_Items.AddItem("<a mazda_2;options for 2>Mazda <b>2</b></a>"); com_Items.AddItem("<a mazda_3;options for 3a>Mazda <b>3.a</b></a>"); com_Items.AddItem("<a mazda_3;options for 3b>Mazda <b>3.b</b></a>"); exgantt1.EndUpdate(); } |
858 |
I have the rows with different background color, and when I select the item it takes the color of the SelBackColor, and therefore is no longer visible behind the color. Is there any option to make the item's color being visible (method 3)
public void init() { COM com_Items; anytype var_Items; str var_s; ; super(); exgantt1.BeginUpdate(); var_s = "gBFLBCJwBAEHhEJAEGg4BVEIQAAYAQGKIYBkAKBQAGaAoDDMOQwQwAAxjGKEEwsACEIrjKCRShyCYZRhGcTSBCIZBqEqSZLiEZRQCWIAzATGYBRfIUEgjBM6ExwG78eg"; var_s = var_s + "BHp/ZpkACIJJAaRjHQdJxGKKMQB9DIhCZpeKhWgkKIJBzOEyBRC4ERBGqNGrsIgLEqWZpnWhaNpWXYTLyBN64LhuK46g53O6wLxvK6hEr2dJ/YBcIAOfghf4NQ7EMRxL"; var_s = var_s + "C8Mw3BDvYDkOAABAIgI="; exgantt1.VisualAppearance().Add(1,COMVariant::createFromStr(var_s)); exgantt1.SelBackColor(0x1fffffe); exgantt1.ShowFocusRect(false); exgantt1.Columns().Add("Items"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.ItemBackColor(com_Items.AddItem("red"),WinApi::RGB2int(255,0,0)); com_Items.ItemBackColor(com_Items.AddItem("blue"),WinApi::RGB2int(0,0,255)); com_Items.ItemBackColor(com_Items.AddItem("green"),WinApi::RGB2int(0,255,0)); exgantt1.EndUpdate(); } |
857 |
I have the rows with different background color, and when I select the item it takes the color of the SelBackColor, and therefore is no longer visible behind the color. Is there any option to make the item's color being visible (method 2)
public void init() { COM com_Items; anytype var_Items; ; super(); exgantt1.BeginUpdate(); exgantt1.SelBackMode(1/*exTransparent*/); exgantt1.ShowFocusRect(false); exgantt1.Columns().Add("Items"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.ItemBackColor(com_Items.AddItem("red"),WinApi::RGB2int(255,0,0)); com_Items.ItemBackColor(com_Items.AddItem("blue"),WinApi::RGB2int(0,0,255)); com_Items.ItemBackColor(com_Items.AddItem("green"),WinApi::RGB2int(0,255,0)); exgantt1.EndUpdate(); } |
856 |
I have the rows with different background color, and when I select the item it takes the color of the SelBackColor, and therefore is no longer visible behind the color. Is there any option to make the item's color being visible (method 1)
public void init() { COM com_Items; anytype var_Items; ; super(); exgantt1.BeginUpdate(); exgantt1.SelBackColor(exgantt1.BackColor()); exgantt1.SelForeColor(exgantt1.ForeColor()); exgantt1.ShowFocusRect(true); exgantt1.Columns().Add("Items"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.ItemBackColor(com_Items.AddItem("red"),WinApi::RGB2int(255,0,0)); com_Items.ItemBackColor(com_Items.AddItem("blue"),WinApi::RGB2int(0,0,255)); com_Items.ItemBackColor(com_Items.AddItem("green"),WinApi::RGB2int(0,255,0)); exgantt1.EndUpdate(); } |
855 |
Do you have any Fit-To-Page options when printing the control
// AddItem event - Occurs after a new Item has been inserted to Items collection. void onEvent_AddItem(int _Item) { COM com_Items; anytype var_Items; ; var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddBar(_Item,"Task",com_Items.CellCaption(_Item,COMVariant::createFromInt(2)),com_Items.CellCaption(_Item,COMVariant::createFromInt(4))); } public void init() { COM com_Items,com_Print,com_rs; anytype rs,var_Items,var_Print; ; super(); exgantt1.BeginUpdate(); exgantt1.ColumnAutoResize(false); exgantt1.ContinueColumnScroll(false); // Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project. rs = COM::createFromObject(new ADODB.Recordset()); com_rs = rs; rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGantt\\Sample\\Access\\sample.accdb",3/*adOpenStatic*/,3/*adLockOptimistic*/); exgantt1.DataSource(rs); exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("8/4/1994",213))); exgantt1.EndUpdate(); // Add 'exprint.dll(ExPrint.dll)' reference to your project. // Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project. var_Print = COM::createFromObject(new EXPRINTLib.exprint()); com_Print = var_Print; com_Print.Options("FitToPage = On"); com_Print.PrintExt(exgantt1); com_Print.Preview(); } |
854 |
How can I add a footer row
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.ShowLockedItems(true); exgantt1.DrawGridLines(2/*exVLines*/); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.LockedItemCount(2/*BottomAlignment*/,1); h = com_Items.LockedItem(2/*BottomAlignment*/,0); com_Items.ItemBackColor(h,WinApi::RGB2int(128,128,128)); com_Items.ItemForeColor(h,WinApi::RGB2int(255,255,255)); com_Items.CellCaption(h,COMVariant::createFromInt(0),"footer c1"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"footer c2"); com_Items.CellCaption(com_Items.AddItem("cell"),COMVariant::createFromInt(1),"cell"); } |
853 |
How can I add a header row
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.ShowLockedItems(true); exgantt1.DrawGridLines(2/*exVLines*/); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.LockedItemCount(0/*TopAlignment*/,1); h = com_Items.LockedItem(0/*TopAlignment*/,0); com_Items.ItemBackColor(h,WinApi::RGB2int(128,128,128)); com_Items.ItemForeColor(h,WinApi::RGB2int(255,255,255)); com_Items.CellCaption(h,COMVariant::createFromInt(0),"footer c1"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"footer c2"); com_Items.CellCaption(com_Items.AddItem("cell"),COMVariant::createFromInt(1),"cell"); } |
852 |
How can I programmatically add more columns to the sort bar and other to be sorted, but not included in the sort bar
public void init() { COM com_Columns; anytype var_Columns; ; super(); exgantt1.SortBarVisible(true); var_Columns = exgantt1.Columns(); com_Columns = var_Columns; com_Columns.Add(0); com_Columns.Add(1); com_Columns.Add(2); com_Columns.Add(3); com_Columns.Add(4); exgantt1.Layout("multiplesort=\"C3:1 C4:2\";singlesort=\"C2:1\""); } |
851 |
How can I fix a column, while other sizable and fill the control's client
public void init() { COM com_Column; anytype var_Column; ; super(); exgantt1.ColumnAutoResize(true); exgantt1.Columns().Add("Sizable"); var_Column = COM::createFromVariant(exgantt1.Columns().Add("F")); com_Column = var_Column; com_Column.AllowSizing(false); com_Column.Width(16); } |
850 |
When I'm trying to show string with "line break" character (vbCrLF) in a textbox, it shows 2 squares. Is there any way to hide these squares
public void init() { COM com_Column,com_Column1,com_Column2,com_Columns,com_Items; anytype var_Column,var_Column1,var_Column2,var_Columns,var_Items; ; super(); var_Columns = exgantt1.Columns(); com_Columns = var_Columns; com_Columns.Add("Value"); var_Column = COM::createFromVariant(com_Columns.Add("CellSingleLine = False")); com_Column = var_Column; com_Column.ComputedField("%0"); com_Column.Def(16/*exCellSingleLine*/,COMVariant::createFromBoolean(false)); var_Column1 = COM::createFromVariant(com_Columns.Add("FormatColumn/replace CRLF")); com_Column1 = var_Column1; com_Column1.ComputedField("%0"); com_Column1.FormatColumn("value replace `\\r\\n` with ``"); var_Column2 = COM::createFromVariant(com_Columns.Add("FormatColumn/replace TAB,CRLF")); com_Column2 = var_Column2; com_Column2.ComputedField("%0"); com_Column2.FormatColumn("(value replace `\\t` with ``) replace `\\r\\n` with ``"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddItem("a\\ta\\r\\nb\\tb"); } |
849 |
Is there any way to "unselect" radio group
// DblClick event - Occurs when the user dblclk the left mouse button over an object. void onEvent_DblClick(int _Shift,int _X,int _Y) { COM com_Items; anytype var_Items; int h; ; var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.CellChecked(1234); com_Items.CellHasCheckBox(COMVariant::createFromInt(0),h,true); com_Items.CellState(COMVariant::createFromInt(0),h,0); com_Items.CellHasCheckBox(COMVariant::createFromInt(0),h,false); } // SelectionChanged event - Fired after a new item has been selected. void onEvent_SelectionChanged() { COM com_Items; anytype var_Items; ; var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.CellState(com_Items.FocusItem(),COMVariant::createFromInt(0),1); } public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.MarkSearchColumn(false); exgantt1.SelBackColor(WinApi::RGB2int(255,255,128)); exgantt1.SelForeColor(WinApi::RGB2int(0,0,0)); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Radio 1"); com_Items.CellHasRadioButton(h,COMVariant::createFromInt(0),true); com_Items.CellRadioGroup(h,COMVariant::createFromInt(0),1234); h = com_Items.AddItem("Radio 2"); com_Items.CellHasRadioButton(h,COMVariant::createFromInt(0),true); com_Items.CellRadioGroup(h,COMVariant::createFromInt(0),1234); com_Items.CellState(h,COMVariant::createFromInt(0),1); h = com_Items.AddItem("Radio 3"); com_Items.CellHasRadioButton(h,COMVariant::createFromInt(0),true); com_Items.CellRadioGroup(h,COMVariant::createFromInt(0),1234); } |
848 |
The Column.Alignment property does not seem to work for cells with images in them. What can be done
public void init() { COM com_Column,com_Items; anytype var_Column,var_Items; str var_s; ; super(); exgantt1.BeginUpdate(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exgantt1.Images(COMVariant::createFromStr(var_s)); exgantt1.TreeColumnIndex(-1); exgantt1.DrawGridLines(-1/*exAllLines*/); exgantt1.HeaderHeight(24); exgantt1.DefaultItemHeight(24); var_Column = COM::createFromVariant(exgantt1.Columns().Add("Image")); com_Column = var_Column; com_Column.AllowSizing(false); com_Column.Width(32); com_Column.HTMLCaption("<img>1</img>"); com_Column.HeaderAlignment(1/*CenterAlignment*/); com_Column.Alignment(1/*CenterAlignment*/); com_Column.Def(17/*exCellCaptionFormat*/,COMVariant::createFromInt(1)); exgantt1.Columns().Add("Rest"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddItem("<img>1</img>"); com_Items.AddItem("<img>2</img>"); com_Items.AddItem("<img>3</img>"); exgantt1.EndUpdate(); } |
847 |
Does your control support subscript or superscript, in HTML captions
public void init() { COM com_Chart,com_Items; anytype var_Chart,var_Items; int h; ; super(); var_Chart = exgantt1.Chart(); com_Chart = var_Chart; com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,64); exgantt1.Columns().Add("Column"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Item 1"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),""); com_Items.ItemBar(h,"",3/*exBarCaption*/,"<sha ;;0>Event <b><font ;6><off -6>2<off 4>3<off 4>1"); com_Items.ItemBar(h,"",4/*exBarHAlignCaption*/,COMVariant::createFromInt(18)); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(false,64); } */ |
846 |
How do I arrange my columns on multiple levels
public void init() { COM com_Column,com_Column1,com_Column2,com_Columns; anytype var_Column,var_Column1,var_Column2,var_Columns; ; super(); exgantt1.BeginUpdate(); exgantt1.ColumnAutoResize(false); exgantt1.DrawGridLines(-1/*exAllLines*/); var_Columns = exgantt1.Columns(); com_Columns = var_Columns; var_Column = COM::createFromVariant(com_Columns.Add("C0")); com_Column = var_Column; com_Column.ExpandColumns("1,2"); com_Column.DisplayExpandButton(false); com_Columns.Add("C1"); com_Columns.Add("C2"); com_Columns.Add("C3"); var_Column1 = COM::createFromVariant(com_Columns.Add("C4")); com_Column1 = var_Column1; com_Column1.ExpandColumns("5,6"); com_Column1.DisplayExpandButton(false); com_Columns.Add("C5"); var_Column2 = COM::createFromVariant(com_Columns.Add("C6")); com_Column2 = var_Column2; com_Column2.ExpandColumns("6,7"); com_Column2.DisplayExpandButton(false); com_Columns.Add("C7"); exgantt1.EndUpdate(); } |
845 |
Does your control support expandable header or columns, so I can arrange it on multiple levels
public void init() { COM com_Column,com_Column1,com_Columns; anytype var_Column,var_Column1,var_Columns; ; super(); exgantt1.BeginUpdate(); exgantt1.DrawGridLines(-1/*exAllLines*/); exgantt1.BackColorLevelHeader(WinApi::RGB2int(240,240,240)); var_Columns = exgantt1.Columns(); com_Columns = var_Columns; var_Column = COM::createFromVariant(com_Columns.Add("Photo")); com_Column = var_Column; com_Column.AllowSizing(false); com_Column.Width(32); com_Columns.Add("Personal Info"); com_Columns.Add("Title"); com_Columns.Add("Name"); com_Columns.Add("First"); com_Columns.Add("Last"); com_Columns.Add("Address"); var_Column1 = COM::createFromObject(com_Columns.Item("Personal Info")); com_Column1 = var_Column1; com_Column1.ExpandColumns("2,3"); var_Column1 = com_Columns.Item("Name"); com_Column1 = var_Column1; com_Column1.ExpandColumns("4,5"); com_Column1.Expanded(false); exgantt1.EndUpdate(); } |
844 |
Can I change the format of date to be shown in the control
public void init() { COM com_Column,com_Column1,com_Column2,com_Columns,com_Items; anytype var_Column,var_Column1,var_Column2,var_Columns,var_Items; str var_s; ; super(); /*should be called during the form's activate method*/ exgantt1.Chart().PaneWidth(true,0); var_Columns = exgantt1.Columns(); com_Columns = var_Columns; com_Columns.Add("Default"); var_Column = COM::createFromVariant(com_Columns.Add("Format.1")); com_Column = var_Column; com_Column.ComputedField("%0"); com_Column.FormatColumn("dateF(value) replace `/` with `-`"); var_Column1 = COM::createFromVariant(com_Columns.Add("Format.2")); com_Column1 = var_Column1; com_Column1.ComputedField("%0"); com_Column1.Def(17/*exCellCaptionFormat*/,COMVariant::createFromInt(1)); com_Column1.FormatColumn("`<b>`+ shortdate(value) + `</b> ` + timeF(value)"); var_Column2 = COM::createFromVariant(com_Columns.Add("Format.3")); com_Column2 = var_Column2; com_Column2.ComputedField("%0"); com_Column2.Def(17/*exCellCaptionFormat*/,COMVariant::createFromInt(1)); var_s = "` <b>`+ ( weekday(value) case ( 0 : `Su`; 1 : `Mo`; 2 : `Tu`; 3 : `We`; 4 : `Th`; 5 : `Fr`; 6 : `Sa`) ) + `</b> ` + ( dateF(valu"; var_s = var_s + "e) replace `/` with `-` )"; com_Column2.FormatColumn(var_s); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("1/1/2001 10:00:00",213))); com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("1/2/2001 10:00:00",213))); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(true,0); } */ |
843 |
How can I remove all bars from the chart
public void init() { COM com_Items; anytype var_Items; ; super(); exgantt1.Columns().Add("Task"); exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddBar(com_Items.AddItem("Task 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1"); com_Items.AddBar(com_Items.AddItem("Task 2"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1"); com_Items.AddBar(com_Items.AddItem("Task 3"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1"); com_Items.AddBar(com_Items.AddItem("Task 4"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K2"); com_Items.ClearBars(0); } |
842 |
How can I change the color for all bars with a specified key
public void init() { COM com_Items; anytype var_Items; ; super(); exgantt1.Columns().Add("Task"); exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddBar(com_Items.AddItem("Task 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1"); com_Items.AddBar(com_Items.AddItem("Task 2"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1"); com_Items.AddBar(com_Items.AddItem("Task 3"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1"); com_Items.AddBar(com_Items.AddItem("Task 4"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K2"); com_Items.ItemBar(0,"K1",513/*exBarColor*/,COMVariant::createFromInt(255)); } |
841 |
Is there any automatic way to change a property for all bars with a specified key
public void init() { COM com_Items; anytype var_Items; ; super(); exgantt1.Columns().Add("Task"); exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddBar(com_Items.AddItem("Task 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1"); com_Items.AddBar(com_Items.AddItem("Task 2"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1"); com_Items.AddBar(com_Items.AddItem("Task 3"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1"); com_Items.AddBar(com_Items.AddItem("Task 4"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K2"); com_Items.ItemBar(0,"K1",513/*exBarColor*/,COMVariant::createFromInt(255)); } |
840 |
How can I remove all bars with specified key
public void init() { COM com_Items; anytype var_Items; ; super(); exgantt1.Columns().Add("Task"); exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddBar(com_Items.AddItem("Task 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1"); com_Items.AddBar(com_Items.AddItem("Task 2"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1"); com_Items.AddBar(com_Items.AddItem("Task 3"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1"); com_Items.AddBar(com_Items.AddItem("Task 4"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K2"); com_Items.RemoveBar(0,"K1"); } |
839 |
How can I find if there is any filter applied to the control
// FilterChange event - Occurs when the filter was changed. void onEvent_FilterChange() { ; print( "If negative, the filter is present, else not" ); print( exgantt1.Items().VisibleItemCount() ); } public void init() { COM com_Column,com_Items; anytype var_Column,var_Items; int h; ; super(); exgantt1.BeginUpdate(); exgantt1.LinesAtRoot(-1/*exLinesAtRoot*/); exgantt1.TreeColumnIndex(-1); exgantt1.FilterInclude(4/*exMatchingItemsOnly*/); var_Column = COM::createFromVariant(exgantt1.Columns().Add("Column")); com_Column = var_Column; com_Column.DisplayFilterButton(true); com_Column.FilterType(240/*exFilter*/); com_Column.Filter("C1"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("R1"); com_Items.InsertItem(h,,"C1"); com_Items.InsertItem(h,,"C2"); com_Items.ExpandItem(h,true); h = com_Items.AddItem("R2"); com_Items.InsertItem(h,,"C1"); com_Items.InsertItem(h,,"C2"); exgantt1.ApplyFilter(); exgantt1.EndUpdate(); } |
838 |
How can I prevent showing the lines for the hierarchy while using the exMatchingItemsOnly option
public void init() { COM com_Column,com_Items; anytype var_Column,var_Items; int h; ; super(); exgantt1.BeginUpdate(); exgantt1.LinesAtRoot(-1/*exLinesAtRoot*/); exgantt1.TreeColumnIndex(-1); exgantt1.FilterInclude(4/*exMatchingItemsOnly*/); var_Column = COM::createFromVariant(exgantt1.Columns().Add("Column")); com_Column = var_Column; com_Column.DisplayFilterButton(true); com_Column.FilterType(240/*exFilter*/); com_Column.Filter("C1|C2"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("R1"); com_Items.InsertItem(h,,"C1"); com_Items.InsertItem(h,,"C2"); com_Items.ExpandItem(h,true); h = com_Items.AddItem("R2"); com_Items.InsertItem(h,,"C1"); com_Items.InsertItem(h,,"C2"); exgantt1.ApplyFilter(); exgantt1.EndUpdate(); } |
837 |
Is there any method to get only the matched items and not the items with his parent
public void init() { COM com_Column,com_Items; anytype var_Column,var_Items; int h; ; super(); exgantt1.BeginUpdate(); exgantt1.LinesAtRoot(-1/*exLinesAtRoot*/); exgantt1.FilterInclude(4/*exMatchingItemsOnly*/); var_Column = COM::createFromVariant(exgantt1.Columns().Add("Column")); com_Column = var_Column; com_Column.DisplayFilterButton(true); com_Column.FilterType(240/*exFilter*/); com_Column.Filter("C1|C2"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("R1"); com_Items.InsertItem(h,,"C1"); com_Items.InsertItem(h,,"C2"); com_Items.ExpandItem(h,true); h = com_Items.AddItem("R2"); com_Items.InsertItem(h,,"C1"); com_Items.InsertItem(h,,"C2"); exgantt1.ApplyFilter(); exgantt1.EndUpdate(); } |
836 |
Is there any property I can save and restore automatically the current setting, column position, size, and so on (2)
public void init() { COM com_Items; anytype var_Items; ; super(); exgantt1.BeginUpdate(); exgantt1.Columns().Add("Column"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddItem("Item 1"); com_Items.AddItem("Item 2"); com_Items.AddItem("Item 3"); exgantt1.Layout("Select=\"0\";SingleSort=\"C0:2\";Columns=1"); exgantt1.EndUpdate(); } |
835 |
Is there any property I can save and restore automatically the current setting, column position, size, and so on (1)
public void init() { COM com_Items; anytype var_Items; str var_s; ; super(); exgantt1.BeginUpdate(); exgantt1.Columns().Add("Column"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddItem("Item 1"); com_Items.AddItem("Item 2"); com_Items.AddItem("Item 3"); var_s = "gBjAAwAAuABmABpABsAB0ABlAByhoAPIAOEPAA9gYABoABQAgUEg0XN4AOcJicKkpujMbjsfkMFk0YhkQgUOjUEl8gjcGO0ok8KMULjEaGMcj08kQAO8oMkTNEtGwAGQ"; var_s = var_s + "Aqc7gUlhh1ABtAEsk9GpEfhElgVcsMupNlnlonlaAFcr0shUsp8QPEtnVJqJhmcIhUMh0QiU5sYAqMngUSuEMw07k8Qv0SgVRrNEuVflF2jF5x9JyNEm0TjQijemyE0j"; var_s = var_s + "E3t+YruauoAu4Az1qj9BzRn0UzksSnAA0xDjY6qnAw8OiUQ0dwzN0zWz2t7j8/xURAGNvWH6k8xlEhklhEI0O/6QAgI="; exgantt1.Layout(var_s); exgantt1.EndUpdate(); } |
834 |
I have noticed that the column's header is changed once the cursor hovers it. Is it possible to change that visual appearance
|
833 |
Is it possible to change the visual appearance of the columns selector/floating bar(3)
public void init() { COM com_Columns; anytype var_Columns; ; super(); exgantt1.ColumnAutoResize(false); var_Columns = exgantt1.Columns(); com_Columns = var_Columns; com_Columns.Add("Column 1"); COM::createFromVariant(com_Columns.Add("Column 2")).Visible(false); exgantt1.VisualAppearance().Add(2,"c:\\exontrol\\images\\normal.ebn"); exgantt1.VisualAppearance().Add(3,"c:\\exontrol\\images\\pushed.ebn"); exgantt1.Background(92/*exColumnsFloatAppearance*/,0x2000000); exgantt1.Background(87/*exColumnsFloatBackColor*/,0x3000000); exgantt1.Background(93/*exColumnsFloatCaptionBackColor*/,WinApi::RGB2int(246,245,240)); exgantt1.ColumnsFloatBarVisible(true); } |
832 |
Is it possible to change the visual appearance of the columns selector/floating bar(2)
public void init() { COM com_Columns; anytype var_Columns; ; super(); exgantt1.ColumnAutoResize(false); var_Columns = exgantt1.Columns(); com_Columns = var_Columns; com_Columns.Add("Column 1"); COM::createFromVariant(com_Columns.Add("Column 2")).Visible(false); exgantt1.VisualAppearance().Add(3,"c:\\exontrol\\images\\pushed.ebn"); exgantt1.Background(87/*exColumnsFloatBackColor*/,0x3000000); exgantt1.ColumnsFloatBarVisible(true); } |
831 |
Is it possible to change the visual appearance of the columns selector/floating bar(1)
|
830 |
I am using the ColumnsFloatBarVisible property on True, but still not able to add any column on that list
|
829 |
Is it possible to list a column to columns selector/floating bar, but still user can use it
public void init() { COM com_Column,com_Columns; anytype var_Column,var_Columns; ; super(); exgantt1.ColumnAutoResize(false); var_Columns = exgantt1.Columns(); com_Columns = var_Columns; com_Columns.Add("Column 1"); COM::createFromVariant(com_Columns.Add("Column 2")).Visible(false); var_Column = COM::createFromVariant(com_Columns.Add("Column 3")); com_Column = var_Column; com_Column.Visible(false); com_Column.Enabled(false); exgantt1.ColumnsFloatBarVisible(true); } |
828 |
How can I prevent a specific column not to be listed in the columns selector/floating bar
|
827 |
Is it possible to change the "Columns" caption being shown in the columns selector/floating bar
|
826 |
How can I show the columns selector, so the user can drag and drop columns to the view
|
825 |
The column's header is changed while the cursor hovers it. Is it possible to prevent that
|
824 |
How do I enable the scrollbar-extension, as thumb to be shown outside of the control's client area
public void init() { ; super(); exgantt1.BeginUpdate(); exgantt1.ScrollBars(15/*exDisableBoth*/); exgantt1.Chart().ToolTip(""); exgantt1.ScrollPartVisible(0/*exVScroll*/,65536/*exExtentThumbPart*/,true); exgantt1.ScrollPartVisible(1/*exHScroll*/,65536/*exExtentThumbPart*/,true); exgantt1.ScrollPartVisible(2/*exHChartScroll*/,65536/*exExtentThumbPart*/,true); exgantt1.ScrollWidth(4); exgantt1.Background(276/*exVSBack*/,WinApi::RGB2int(240,240,240)); exgantt1.Background(260/*exVSThumb*/,WinApi::RGB2int(128,128,128)); exgantt1.ScrollHeight(4); exgantt1.Background(404/*exHSBack*/,exgantt1.Background(276/*exVSBack*/)); exgantt1.Background(388/*exHSThumb*/,exgantt1.Background(260/*exVSThumb*/)); exgantt1.Background(511/*exScrollSizeGrip*/,exgantt1.Background(276/*exVSBack*/)); exgantt1.EndUpdate(); } |
823 |
How can I display the Year in Thai, Buddhist, Korean format
public void init() { COM com_Chart,com_Level; anytype var_Chart,var_Level; ; super(); var_Chart = exgantt1.Chart(); com_Chart = var_Chart; com_Chart.FirstWeekDay(com_Chart.LocFirstWeekDay()); com_Chart.MonthNames(com_Chart.LocMonthNames()); com_Chart.WeekDays(com_Chart.LocWeekDays()); com_Chart.AMPM(com_Chart.LocAMPM()); com_Chart.LevelCount(2); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,0); com_Chart.UnitScale(4096/*exDay*/); var_Level = com_Chart.Level(0); com_Level = var_Level; com_Level.Label("<%mmmm%> <%d%>, <%loc_yyyy%> <r><%ww%>"); com_Level.Unit(256/*exWeek*/); com_Level.ToolTip(com_Level.Label()); com_Chart.ToolTip("<%ddd%> <%m%>/<%d%>/<%loc_yyyy%>"); exgantt1.Description(17/*exFilterBarDateMonths*/,exgantt1.Chart().MonthNames()); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(false,0); } */ |
822 |
How does localization work
public void init() { COM com_Chart; anytype var_Chart; ; super(); var_Chart = exgantt1.Chart(); com_Chart = var_Chart; com_Chart.FirstWeekDay(com_Chart.LocFirstWeekDay()); com_Chart.MonthNames(com_Chart.LocMonthNames()); com_Chart.WeekDays(com_Chart.LocWeekDays()); com_Chart.AMPM(com_Chart.LocAMPM()); com_Chart.LevelCount(2); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,0); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(false,0); } */ |
821 |
How can I have a case-insensitive filter (exFilterDoCaseSensitive flag is not set)
public void init() { COM com_Column,com_Column1,com_Columns,com_Items; anytype var_Column,var_Column1,var_Columns,var_Items; ; super(); exgantt1.BeginUpdate(); /*should be called during the form's activate method*/ exgantt1.Chart().PaneWidth(true,0); exgantt1.MarkSearchColumn(false); var_Columns = exgantt1.Columns(); com_Columns = var_Columns; var_Column = COM::createFromVariant(com_Columns.Add("Car")); com_Column = var_Column; com_Column.DisplayFilterButton(true); com_Column.FilterType(240/*exFilter*/); com_Column.Filter("MAZDA"); var_Column1 = COM::createFromVariant(com_Columns.Add("Equipment")); com_Column1 = var_Column1; com_Column1.DisplayFilterButton(true); com_Column1.DisplayFilterPattern(false); com_Column1.CustomFilter("Air Bag||*Air Bag*|||Air condition||*Air condition*|||ABS||*ABS*|||ESP||*ESP*"); com_Column1.FilterType(3/*exPattern*/); com_Column1.Filter("AIR BAG"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.CellCaption(com_Items.AddItem("Mazda"),COMVariant::createFromInt(1),"Air Bag"); com_Items.CellCaption(com_Items.AddItem("Toyota"),COMVariant::createFromInt(1),"Air Bag,Air condition"); com_Items.CellCaption(com_Items.AddItem("Ford"),COMVariant::createFromInt(1),"Air condition"); com_Items.CellCaption(com_Items.AddItem("Nissan"),COMVariant::createFromInt(1),"Air Bag,ABS,ESP"); com_Items.CellCaption(com_Items.AddItem("Mazda"),COMVariant::createFromInt(1),"Air Bag, ABS,ESP"); com_Items.CellCaption(com_Items.AddItem("Mazda"),COMVariant::createFromInt(1),"ABS,ESP"); exgantt1.ApplyFilter(); exgantt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(true,0); } */ |
820 |
How can I have a case-sensitive filter
public void init() { COM com_Column,com_Column1,com_Columns,com_Items; anytype var_Column,var_Column1,var_Columns,var_Items; ; super(); exgantt1.BeginUpdate(); /*should be called during the form's activate method*/ exgantt1.Chart().PaneWidth(true,0); exgantt1.MarkSearchColumn(false); var_Columns = exgantt1.Columns(); com_Columns = var_Columns; var_Column = COM::createFromVariant(com_Columns.Add("Car")); com_Column = var_Column; com_Column.DisplayFilterButton(true); com_Column.FilterType(496/*exFilterDoCaseSensitive | exFilter*/); com_Column.Filter("Mazda"); var_Column1 = COM::createFromVariant(com_Columns.Add("Equipment")); com_Column1 = var_Column1; com_Column1.DisplayFilterButton(true); com_Column1.DisplayFilterPattern(false); com_Column1.CustomFilter("Air Bag||*Air Bag*|||Air condition||*Air condition*|||ABS||*ABS*|||ESP||*ESP*"); com_Column1.FilterType(259/*exFilterDoCaseSensitive | exPattern*/); com_Column1.Filter("Air Bag"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.CellCaption(com_Items.AddItem("Mazda"),COMVariant::createFromInt(1),"Air Bag"); com_Items.CellCaption(com_Items.AddItem("Toyota"),COMVariant::createFromInt(1),"Air Bag,Air condition"); com_Items.CellCaption(com_Items.AddItem("Ford"),COMVariant::createFromInt(1),"Air condition"); com_Items.CellCaption(com_Items.AddItem("Nissan"),COMVariant::createFromInt(1),"Air Bag,ABS,ESP"); com_Items.CellCaption(com_Items.AddItem("Mazda"),COMVariant::createFromInt(1),"Air Bag, ABS,ESP"); com_Items.CellCaption(com_Items.AddItem("Mazda"),COMVariant::createFromInt(1),"ABS,ESP"); exgantt1.ApplyFilter(); exgantt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(true,0); } */ |
819 |
I am using the FormatColumn/FormatCell to format my columns. Is it possible to ignore the SelForeColor, so the foreground color for selected items does not override my settings
// SelectionChanged event - Fired after a new item has been selected. void onEvent_SelectionChanged() { COM com_Items; anytype var_Items; ; var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.ClearItemBackColor(0); com_Items.ItemBackColor(com_Items.SelectedItem(0),WinApi::RGB2int(128,255,255)); } public void init() { COM com_Column,com_Columns,com_Items; anytype var_Column,var_Columns,var_Items; str var_s; ; super(); exgantt1.BeginUpdate(); exgantt1.MarkSearchColumn(false); exgantt1.SelForeColor(exgantt1.ForeColor()); exgantt1.SelBackColor(exgantt1.BackColor()); exgantt1.ShowFocusRect(false); var_Columns = exgantt1.Columns(); com_Columns = var_Columns; var_Column = COM::createFromVariant(com_Columns.Add("Format")); com_Column = var_Column; var_s = "type(value) in (0,1) ? 'null' : ( dbl(value)<0 ? '<fgcolor=FF0000>'+ (value format '2|.|3|,|1' ) : (dbl(value)>0 ? '<fgcolor=000"; var_s = var_s + "0FF>+'+(value format '2|.|3|,' ): '0.00') )"; com_Column.FormatColumn(var_s); com_Column.Def(17/*exCellCaptionFormat*/,COMVariant::createFromInt(1)); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(10)); com_Items.AddItem(COMVariant::createFromInt(-8)); exgantt1.EndUpdate(); } |
818 |
How do I hide the selection
public void init() { COM com_Column,com_Columns,com_Items; anytype var_Column,var_Columns,var_Items; str var_s; ; super(); exgantt1.BeginUpdate(); exgantt1.MarkSearchColumn(false); exgantt1.SelForeColor(exgantt1.ForeColor()); exgantt1.SelBackColor(exgantt1.BackColor()); exgantt1.ShowFocusRect(false); var_Columns = exgantt1.Columns(); com_Columns = var_Columns; var_Column = COM::createFromVariant(com_Columns.Add("Format")); com_Column = var_Column; var_s = "type(value) in (0,1) ? 'null' : ( dbl(value)<0 ? '<fgcolor=FF0000>'+ (value format '2|.|3|,|1' ) : (dbl(value)>0 ? '<fgcolor=000"; var_s = var_s + "0FF>+'+(value format '2|.|3|,' ): '0.00') )"; com_Column.FormatColumn(var_s); com_Column.Def(17/*exCellCaptionFormat*/,COMVariant::createFromInt(1)); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(10)); com_Items.AddItem(COMVariant::createFromInt(-8)); exgantt1.EndUpdate(); } |
817 |
How do I access the cells, or how do I get the values in the columns
public void init() { COM com_Columns,com_Items; anytype var_Columns,var_Items; int h; ; super(); var_Columns = exgantt1.Columns(); com_Columns = var_Columns; com_Columns.Add("C1"); com_Columns.Add("C2"); com_Columns.Add("C3"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Item 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"SubItem 1.1"); com_Items.CellCaption(h,COMVariant::createFromInt(2),"SubItem 1.2"); print( com_Items.CellCaption(h,COMVariant::createFromInt(2)) ); } |
816 |
How can I change the check-boxes appearance
public void init() { COM com_Appearance,com_Column,com_Items; anytype var_Appearance,var_Column,var_Items; int h; ; super(); exgantt1.LinesAtRoot(-1/*exLinesAtRoot*/); var_Column = COM::createFromVariant(exgantt1.Columns().Add("Default")); com_Column = var_Column; com_Column.Def(0/*exCellHasCheckBox*/,COMVariant::createFromBoolean(true)); com_Column.PartialCheck(true); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); var_Appearance = exgantt1.VisualAppearance(); com_Appearance = var_Appearance; com_Appearance.Add(1,"XP:Button 3 12"); com_Appearance.Add(2,"XP:Button 3 11"); com_Appearance.Add(3,"XP:Button 3 10"); exgantt1.CheckImage(0/*Unchecked*/,16777216); exgantt1.CheckImage(1/*Checked*/,33554432); exgantt1.CheckImage(2/*PartialChecked*/,50331648); } |
815 |
How can I load my table from an Access 2007, using ADO
// AddItem event - Occurs after a new Item has been inserted to Items collection. void onEvent_AddItem(int _Item) { COM com_Items; anytype var_Items; ; var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddBar(_Item,"Task",com_Items.CellCaption(_Item,COMVariant::createFromInt(2)),com_Items.CellCaption(_Item,COMVariant::createFromInt(4))); } public void init() { COM com_Chart,com_Items,com_rs; anytype rs,var_Chart,var_Items; ; super(); exgantt1.BeginUpdate(); var_Chart = exgantt1.Chart(); com_Chart = var_Chart; com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("8/3/1994",213))); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,256); com_Chart.LevelCount(2); com_Chart.UnitScale(4096/*exDay*/); com_Chart.FirstWeekDay(1/*exMonday*/); com_Chart.OverviewVisible(-1/*exOverviewShowAll*/); exgantt1.ColumnAutoResize(false); exgantt1.ContinueColumnScroll(false); // Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project. rs = COM::createFromObject(new ADODB.Recordset()); com_rs = rs; rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGantt\\Sample\\Access\\sample.accdb",3/*adOpenStatic*/,3/*adLockOptimistic*/); exgantt1.DataSource(rs); exgantt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(false,256); } */ |
814 |
Is it possible display numbers in the same format no matter of regional settings in the control panel
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.BeginUpdate(); COM::createFromVariant(exgantt1.Columns().Add("Def")).Def(17/*exCellCaptionFormat*/,COMVariant::createFromInt(1)); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem(COMVariant::createFromReal(666666.27)); com_Items.FormatCell(h,COMVariant::createFromInt(0),"(value format '') + ' <fgcolor=808080>(default positive)'"); h = com_Items.AddItem(COMVariant::createFromReal(666666.27)); com_Items.FormatCell(h,COMVariant::createFromInt(0),"(value format '2|.|3|,|1|1')"); h = com_Items.AddItem(COMVariant::createFromReal(-666666.27)); com_Items.FormatCell(h,COMVariant::createFromInt(0),"(value format '') + ' <fgcolor=808080>(default negative)'"); h = com_Items.AddItem(COMVariant::createFromReal(-666666.27)); com_Items.FormatCell(h,COMVariant::createFromInt(0),"(value format '2|.|3|,|1|1')"); exgantt1.EndUpdate(); } |
813 |
The right pane needs to show ONLY the hours 6am to 9pm (every hour) for one day only and the user should not to be able to scroll left or right nor see any other hours. How can I do that
public void init() { COM com_Chart,com_Level; anytype var_Chart,var_Level; ; super(); exgantt1.BeginUpdate(); exgantt1.Columns().Add("Tasks"); var_Chart = exgantt1.Chart(); com_Chart = var_Chart; com_Chart.LevelCount(2); com_Chart.ScrollRange(0/*exStartDate*/,COMVariant::createFromDate(str2Date("1/1/2001",213))); com_Chart.ScrollRange(1/*exEndDate*/,COMVariant::createFromDate(str2Date("1/1/2001",213))); com_Chart.UnitScale(65536/*exHour*/); com_Chart.NonworkingHours(12582975); com_Chart.ShowNonworkingUnits(false); var_Level = COM::createFromObject(com_Chart.Level(0)); com_Level = var_Level; com_Level.Alignment(17/*exHOutside | CenterAlignment*/); com_Chart.UnitWidth(18); /*should be called during the form's activate method*/ com_Chart.PaneWidth(true,294); com_Chart.ScrollBar(false); exgantt1.OnResizeControl(128/*exDisableSplitter*/); exgantt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(true,294); } */ |
812 |
Can I use ebn files to display the selected dates
public void init() { COM com_Appearance,com_Chart,com_Items; anytype var_Appearance,var_Chart,var_Items; ; super(); exgantt1.BeginUpdate(); var_Appearance = exgantt1.VisualAppearance(); com_Appearance = var_Appearance; com_Appearance.Add(2,"c:\\exontrol\\images\\normal.ebn"); com_Appearance.Add(1,"CP:2 0 -4 0 4"); var_Chart = exgantt1.Chart(); com_Chart = var_Chart; com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2008",213))); com_Chart.MarkTodayColor(com_Chart.BackColor()); com_Chart.LevelCount(2); com_Chart.MarkSelectDateColor(0x1000000); com_Chart.SelectLevel(1); com_Chart.SelectDate(str2Date("1/3/2008",213),true); com_Chart.SelectDate(str2Date("1/4/2008",213),true); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2008",213)),COMVariant::createFromDate(str2Date("1/6/2008",213))); com_Items.AddBar(com_Items.AddItem("Item 2"),"Task",COMVariant::createFromDate(str2Date("1/3/2008",213)),COMVariant::createFromDate(str2Date("1/7/2008",213))); com_Items.AddBar(com_Items.AddItem("Item 3"),"Task",COMVariant::createFromDate(str2Date("1/4/2008",213)),COMVariant::createFromDate(str2Date("1/8/2008",213))); com_Items.AddBar(com_Items.AddItem("Item 4"),"Task",COMVariant::createFromDate(str2Date("1/5/2008",213)),COMVariant::createFromDate(str2Date("1/9/2008",213))); exgantt1.EndUpdate(); } |
811 |
Can I use ebn files to display the selected dates
public void init() { COM com_Chart,com_Items; anytype var_Chart,var_Items; ; super(); exgantt1.BeginUpdate(); exgantt1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn"); var_Chart = exgantt1.Chart(); com_Chart = var_Chart; com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2008",213))); com_Chart.MarkTodayColor(com_Chart.BackColor()); com_Chart.LevelCount(2); com_Chart.MarkSelectDateColor(0x1000000); com_Chart.SelectLevel(1); com_Chart.SelectDate(str2Date("1/3/2008",213),true); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2008",213)),COMVariant::createFromDate(str2Date("1/6/2008",213))); com_Items.AddBar(com_Items.AddItem("Item 2"),"Task",COMVariant::createFromDate(str2Date("1/3/2008",213)),COMVariant::createFromDate(str2Date("1/7/2008",213))); com_Items.AddBar(com_Items.AddItem("Item 3"),"Task",COMVariant::createFromDate(str2Date("1/4/2008",213)),COMVariant::createFromDate(str2Date("1/8/2008",213))); exgantt1.EndUpdate(); } |
810 |
How can I change the color for selected dates to be solid
|
809 |
How can I add or change the padding (spaces) for captions in the control's header
public void init() { COM com_Column; anytype var_Column; ; super(); exgantt1.BeginUpdate(); /*should be called during the form's activate method*/ exgantt1.Chart().PaneWidth(true,0); COM::createFromVariant(exgantt1.Columns().Add("Padding-Left")).Def(52/*exHeaderPaddingLeft*/,COMVariant::createFromInt(18)); var_Column = COM::createFromVariant(exgantt1.Columns().Add("Padding-Right")); com_Column = var_Column; com_Column.Def(53/*exHeaderPaddingRight*/,COMVariant::createFromInt(18)); com_Column.HeaderAlignment(2/*RightAlignment*/); exgantt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(true,0); } */ |
808 |
Do you have any plans to add cell spacing and cell padding to the cells
public void init() { COM com_Column,com_Items; anytype var_Column,var_Items; ; super(); exgantt1.BeginUpdate(); /*should be called during the form's activate method*/ exgantt1.Chart().PaneWidth(true,0); exgantt1.DrawGridLines(-1/*exAllLines*/); var_Column = COM::createFromVariant(exgantt1.Columns().Add("Padding-Left")); com_Column = var_Column; com_Column.Def(0/*exCellHasCheckBox*/,COMVariant::createFromBoolean(true)); com_Column.Def(48/*exCellPaddingLeft*/,COMVariant::createFromInt(18)); COM::createFromVariant(exgantt1.Columns().Add("No-Padding")).Def(0/*exCellHasCheckBox*/,COMVariant::createFromBoolean(true)); COM::createFromVariant(exgantt1.Columns().Add("Empty")).Position(0); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.CellCaption(com_Items.AddItem("Item A.1"),COMVariant::createFromInt(1),"Item A.2"); com_Items.CellCaption(com_Items.AddItem("Item B.1"),COMVariant::createFromInt(1),"Item B.2"); com_Items.CellCaption(com_Items.AddItem("Item C.1"),COMVariant::createFromInt(1),"Item C.2"); exgantt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(true,0); } */ |
807 |
Is it possible to display information about the firing events
|
806 |
Is it possible to scroll the control's content by clicking and moving the mouse up or down
|
805 |
How do I load bars from my ADO table/database
// AddItem event - Occurs after a new Item has been inserted to Items collection. void onEvent_AddItem(int _Item) { COM com_Items; anytype var_Items; ; var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddBar(_Item,"Task",com_Items.CellCaption(_Item,COMVariant::createFromInt(2)),com_Items.CellCaption(_Item,COMVariant::createFromInt(4))); } public void init() { COM com_Chart,com_Items,com_rs; anytype rs,var_Chart,var_Items; ; super(); exgantt1.BeginUpdate(); var_Chart = exgantt1.Chart(); com_Chart = var_Chart; com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("8/3/1994",213))); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,256); com_Chart.LevelCount(2); com_Chart.UnitScale(4096/*exDay*/); com_Chart.FirstWeekDay(1/*exMonday*/); com_Chart.OverviewVisible(-1/*exOverviewShowAll*/); exgantt1.ColumnAutoResize(false); exgantt1.ContinueColumnScroll(false); // Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project. rs = COM::createFromObject(new ADODB.Recordset()); com_rs = rs; rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGantt\\Sample\\Access\\SAMPLE.MDB",3/*adOpenStatic*/,3/*adLockOptimistic*/); exgantt1.DataSource(rs); exgantt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(false,256); } */ |
804 |
Is it possible to auto-numbering the children items but still keeps the position after filtering
public void init() { COM com_Column,com_Column1,com_Column2,com_Column3,com_Column4,com_Column5,com_Column6,com_Items; anytype var_Column,var_Column1,var_Column2,var_Column3,var_Column4,var_Column5,var_Column6,var_Items; int h; ; super(); exgantt1.BeginUpdate(); /*should be called during the form's activate method*/ exgantt1.Chart().PaneWidth(true,0); exgantt1.LinesAtRoot(-1/*exLinesAtRoot*/); var_Column = COM::createFromVariant(exgantt1.Columns().Add("Items")); com_Column = var_Column; com_Column.DisplayFilterButton(true); com_Column.FilterType(240/*exFilter*/); com_Column.Filter("Child 2"); var_Column1 = COM::createFromVariant(exgantt1.Columns().Add("Pos.1")); com_Column1 = var_Column1; com_Column1.FormatColumn("1 ropos ''"); com_Column1.Position(0); com_Column1.Width(32); com_Column1.AllowSizing(false); var_Column2 = COM::createFromVariant(exgantt1.Columns().Add("Pos.2")); com_Column2 = var_Column2; com_Column2.FormatColumn("1 ropos ':'"); com_Column2.Position(1); com_Column2.Width(32); com_Column2.AllowSizing(false); var_Column3 = COM::createFromVariant(exgantt1.Columns().Add("Pos.3")); com_Column3 = var_Column3; com_Column3.FormatColumn("1 ropos ':|A-Z'"); com_Column3.Position(2); com_Column3.Width(32); com_Column3.AllowSizing(false); var_Column4 = COM::createFromVariant(exgantt1.Columns().Add("Pos.4")); com_Column4 = var_Column4; com_Column4.FormatColumn("1 ropos '|A-Z|'"); com_Column4.Position(3); com_Column4.Width(32); com_Column4.AllowSizing(false); var_Column5 = COM::createFromVariant(exgantt1.Columns().Add("Pos.5")); com_Column5 = var_Column5; com_Column5.FormatColumn("'<font Tahoma;7>' + 1 ropos '-<b>||A-Z'"); com_Column5.Def(17/*exCellCaptionFormat*/,COMVariant::createFromInt(1)); com_Column5.Position(4); com_Column5.Width(32); com_Column5.AllowSizing(false); var_Column6 = COM::createFromVariant(exgantt1.Columns().Add("Pos.6")); com_Column6 = var_Column6; com_Column6.FormatColumn("'<b>'+ 1 ropos '</b>:<fgcolor=FF0000>|A-Z|'"); com_Column6.Def(17/*exCellCaptionFormat*/,COMVariant::createFromInt(1)); com_Column6.Position(5); com_Column6.Width(48); com_Column6.AllowSizing(false); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); h = com_Items.AddItem("Root 2"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); exgantt1.ApplyFilter(); exgantt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(true,0); } */ |
803 |
Is it possible to auto-numbering the children items too
public void init() { COM com_Column,com_Column1,com_Column2,com_Column3,com_Column4,com_Column5,com_Items; anytype var_Column,var_Column1,var_Column2,var_Column3,var_Column4,var_Column5,var_Items; int h; ; super(); exgantt1.BeginUpdate(); /*should be called during the form's activate method*/ exgantt1.Chart().PaneWidth(true,0); exgantt1.LinesAtRoot(-1/*exLinesAtRoot*/); exgantt1.Columns().Add("Items"); var_Column = COM::createFromVariant(exgantt1.Columns().Add("Pos.1")); com_Column = var_Column; com_Column.FormatColumn("1 rpos ''"); com_Column.Position(0); com_Column.Width(32); com_Column.AllowSizing(false); var_Column1 = COM::createFromVariant(exgantt1.Columns().Add("Pos.2")); com_Column1 = var_Column1; com_Column1.FormatColumn("1 rpos ':'"); com_Column1.Position(1); com_Column1.Width(32); com_Column1.AllowSizing(false); var_Column2 = COM::createFromVariant(exgantt1.Columns().Add("Pos.3")); com_Column2 = var_Column2; com_Column2.FormatColumn("1 rpos ':|A-Z'"); com_Column2.Position(2); com_Column2.Width(32); com_Column2.AllowSizing(false); var_Column3 = COM::createFromVariant(exgantt1.Columns().Add("Pos.4")); com_Column3 = var_Column3; com_Column3.FormatColumn("1 rpos '|A-Z|'"); com_Column3.Position(3); com_Column3.Width(32); com_Column3.AllowSizing(false); var_Column4 = COM::createFromVariant(exgantt1.Columns().Add("Pos.5")); com_Column4 = var_Column4; com_Column4.FormatColumn("'<font Tahoma;7>' + 1 rpos '-<b>||A-Z'"); com_Column4.Def(17/*exCellCaptionFormat*/,COMVariant::createFromInt(1)); com_Column4.Position(4); com_Column4.Width(32); com_Column4.AllowSizing(false); var_Column5 = COM::createFromVariant(exgantt1.Columns().Add("Pos.6")); com_Column5 = var_Column5; com_Column5.FormatColumn("'<b>'+ 1 rpos '</b>:<fgcolor=FF0000>|A-Z|'"); com_Column5.Def(17/*exCellCaptionFormat*/,COMVariant::createFromInt(1)); com_Column5.Position(5); com_Column5.Width(48); com_Column5.AllowSizing(false); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); h = com_Items.AddItem("Root 2"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); exgantt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exgantt1.Chart().PaneWidth(true,0); } */ |
802 |
Is there any way to add auto-numbering
public void init() { COM com_Column,com_Columns,com_Items; anytype var_Column,var_Columns,var_Items; ; super(); var_Columns = exgantt1.Columns(); com_Columns = var_Columns; com_Columns.Add("Items"); var_Column = COM::createFromVariant(com_Columns.Add("Pos")); com_Column = var_Column; com_Column.FormatColumn("1 pos ''"); com_Column.Position(0); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddItem("Item 1"); com_Items.AddItem("Item 2"); com_Items.AddItem("Item 3"); } |
801 |
How can I format my column to display the percent values “5,00%”
public void init() { COM com_Items; anytype var_Items; ; super(); COM::createFromVariant(exgantt1.Columns().Add("Percent")).FormatColumn("((dbl(value) * 100) format '2|,|3.')+'%'"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromReal(0.5)); com_Items.AddItem(COMVariant::createFromReal(0.4)); com_Items.AddItem(COMVariant::createFromReal(0.75)); } |